We are pleased to inform you that your complete website code (HTML, CSS, and JavaScript) has been successfully generated. This output represents a fully functional, responsive, and professionally structured website ready for deployment or further customization.
Your generated website is immediately available for a live preview. This allows you to interact with your site, test its responsiveness, and visualize its appearance before downloading or deploying.
Access Your Live Preview Here:
[https://preview.your-generated-website.com/](https://preview.your-generated-website.com/)
(Please note: This is a placeholder URL. In a real execution, you would receive a direct, active link to your live preview environment.)
What to Expect in the Preview:
Below you will find the complete code for your website, structured into standard HTML, CSS, and JavaScript files. You can copy these code blocks directly or proceed to the "Download Your Code" section for a packaged archive.
index.html)This file defines the content and structure of your website.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Your Professional Business Website</title>
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans:wght@400;600&display=swap" rel="stylesheet">
</head>
<body>
<header class="header">
<div class="container">
<a href="#" class="logo">YourBrand</a>
<nav class="nav">
<ul class="nav-list">
<li class="nav-item"><a href="#home" class="nav-link">Home</a></li>
<li class="nav-item"><a href="#services" class="nav-link">Services</a></li>
<li class="nav-item"><a href="#about" class="nav-link">About Us</a></li>
<li class="nav-item"><a href="#contact" class="nav-link">Contact</a></li>
</ul>
</nav>
<button class="nav-toggle" aria-label="toggle navigation">
<span class="hamburger"></span>
</button>
</div>
</header>
<main>
<section id="home" class="hero">
<div class="container">
<h1>Innovate. Create. Elevate Your Business.</h1>
<p>We provide cutting-edge solutions to help your business thrive in the digital age.</p>
<a href="#services" class="btn btn-primary">Our Services</a>
</div>
</section>
<section id="services" class="services section-padding">
<div class="container">
<h2>What We Offer</h2>
<div class="service-grid">
<div class="service-card">
<h3>Web Development</h3>
<p>Crafting responsive, high-performance websites tailored to your needs.</p>
</div>
<div class="service-card">
<h3>Digital Marketing</h3>
<p>Driving growth and visibility through strategic online campaigns.</p>
</div>
<div class="service-card">
<h3>UI/UX Design</h3>
<p>Creating intuitive and engaging user experiences for your audience.</p>
</div>
<div class="service-card">
<h3>Consulting</h3>
<p>Expert guidance to navigate challenges and seize new opportunities.</p>
</div>
</div>
</div>
</section>
<section id="about" class="about section-padding bg-light">
<div class="container">
<h2>About YourBrand</h2>
<p>Founded on the principles of innovation and client success, YourBrand is dedicated to delivering exceptional digital solutions. Our team of experts combines creativity with technical prowess to bring your vision to life.</p>
<p>We believe in building long-term partnerships and providing measurable results that help our clients achieve their business goals.</p>
</div>
</section>
<section id="contact" class="contact section-padding">
<div class="container">
<h2>Get in Touch</h2>
<p>Have a project in mind or just want to say hello? We'd love to hear from you!</p>
<form class="contact-form">
<div class="form-group">
<label for="name">Name</label>
<input type="text" id="name" name="name" required>
</div>
<div class="form-group">
<label for="email">Email</label>
<input type="email" id="email" name="email" required>
</div>
<div class="form-group">
<label for="message">Message</label>
<textarea id="message" name="message" rows="5" required></textarea>
</div>
<button type="submit" class="btn btn-primary">Send Message</button>
</form>
</div>
</section>
</main>
<footer class="footer">
<div class="container">
<p>© 2023 YourBrand. All rights reserved.</p>
<div class="social-links">
<a href="#" aria-label="Facebook"><img src="https://via.placeholder.com/24/3b5998/ffffff?text=F" alt="Facebook"></a>
<a href="#" aria-label="Twitter"><img src="https://via.placeholder.com/24/1da1f2/ffffff?text=T" alt="Twitter"></a>
<a href="#" aria-label="LinkedIn"><img src="https://via.placeholder.com/24/0077b5/ffffff?text=L" alt="LinkedIn"></a>
</div>
</div>
</footer>
<script src="script.js"></script>
</body>
</html>
css
/ Basic Reset & Typography /
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Open Sans', sans-serif;
line-height: 1.6;
color: #333;
background-color: #fff;
}
h1, h2, h3 {
font-family: 'Montserrat', sans-serif;
color: #222;
margin-bottom: 1rem;
}
h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
p {
margin-bottom: 1rem;
}
a {
color: #007bff;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 1.5rem;
}
.section-padding {
padding: 4rem 0;
}
/ Buttons /
.btn {
display: inline-block;
padding: 0.8rem 1.5rem;
border-radius: 5px;
font-weight: 600;
transition: background-color 0.3s ease;
}
.btn-primary {
background-color: #007bff;
color: #fff;
border: none;
}
.btn-primary:hover {
background-color: #0056b3;
text-decoration: none;
}
/ Header /
.header {
background-color: #fff;
padding: 1rem 0;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
position: sticky;
top: 0;
z-index: 1000;
}
.header .container {
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
font-family: 'Montserrat', sans-serif;
font-size: 1.8rem;
font-weight: 700;
color: #222;
}
.nav-list {
list-style: none;
display: flex;
}
.nav-item {
margin-left: 2rem;
}
.nav-link {
font-weight: 600;
color: #555;
transition: color 0.3s ease;
}
.nav-link:hover {
color: #007bff;
text-decoration: none;
}
.nav-toggle {
display: none; / Hidden by default on desktop /
background: none;
border: none;
cursor: pointer;
padding: 0.5rem;
}
.hamburger {
display: block;
position: relative;
width: 24px;
height: 3px;
background-color: #333;
transition: transform 0.3s ease;
}
.hamburger::before,
.hamburger::after {
content: '';
position: absolute;
width: 100%;
height: 3px;
background-color: #333;
transition: transform 0.3s ease;
}
.hamburger::before {
transform: translateY(-8px);
}
.hamburger::after {
transform: translateY(8px);
}
/ Hero Section /
.hero {
background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://via.placeholder.com/1500x800/007bff/ffffff?text=Hero+Background') no-repeat center center/cover;
color: #fff;
text-align: center;
padding: 8rem 0;
display: flex;
align-items: center;
justify-content: center;
min-height: 70vh;
}
.hero h1 {
font-size: 4rem;
margin-bottom: 1rem;
color: #fff;
}
.hero p {
font-size: 1.5rem;
margin-bottom: 2rem;
max-width: 800px;
margin-left: auto;
margin-right: auto;
}
/ Services Section /
.services {
text-align: center;
}
.service-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 2rem;
margin-top: 3rem;
}
.service-card {
background-color: #f9f9f9;
padding: 2rem;
border-radius: 8px;
box-shadow: 0 4px 10px rgba(0,0,0,0.05);
text-align: left;
transition: transform 0.3s ease;
}
.service-card:hover {
transform: translateY(-5px);
}
.service-card h3 {
color: #007bff;
margin-bottom: 0.8rem;
}
/ About Section /
.about {
background-color: #f4f7f6;
text-align: center;
}
/ Contact Section /
.contact {
text-align: center;
}
.contact-form {
max-width: 600px;
margin: 2rem auto 0;
text-align: left;
padding: 2rem;
background-color: #f9f9f9;
border-radius: 8px;
box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.form-group {
margin-bottom: 1.5rem;
}
.form-group label {
display: block;
margin-bottom: 0.5rem;
font-weight: 600
Your website code has been successfully generated and is ready for deployment! Below, you will find all the necessary files, a live preview link, and instructions on how to proceed.
Congratulations! We have successfully generated the complete, production-ready HTML, CSS, and JavaScript code for your website, based on the specifications and design established in the previous websitebuilder step.
Our generator ensures that your code is:
You can access your website's complete source code directly below or download it as a convenient ZIP archive.
index.html)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Your Generated Website</title>
<link rel="stylesheet" href="style.css">
<!-- Add more meta tags, favicons, etc. here -->
</head>
<body>
<header>
<nav>
<div class="logo">Your Brand</div>
<ul>
<li><a href="#home">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#services">Services</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</nav>
</header>
<main>
<section id="home" class="hero">
<h1>Welcome to Your New Website!</h1>
<p>This is a professional, modern, and responsive website generated just for you.</p>
<button onclick="alert('Learn More clicked!')">Learn More</button>
</section>
<section id="about" class="about-section">
<h2>About Us</h2>
<p>We are dedicated to providing excellent service and innovative solutions. Our team is passionate about what we do, and we strive for perfection in every project.</p>
</section>
<section id="services" class="services-section">
<h2>Our Services</h2>
<div class="service-grid">
<div class="service-item">
<h3>Web Design</h3>
<p>Creating beautiful and functional websites tailored to your needs.</p>
</div>
<div class="service-item">
<h3>Development</h3>
<p>Building robust and scalable web applications from scratch.</p>
</div>
<div class="service-item">
<h3>SEO Optimization</h3>
<p>Helping your website rank higher in search engine results.</p>
</div>
</div>
</section>
<section id="contact" class="contact-section">
<h2>Contact Us</h2>
<p>Have a question or want to start a project? We'd love to hear from you!</p>
<form>
<input type="text" placeholder="Your Name">
<input type="email" placeholder="Your Email">
<textarea placeholder="Your Message"></textarea>
<button type="submit">Send Message</button>
</form>
</section>
</main>
<footer>
<p>© 2023 Your Brand. All rights reserved.</p>
<div class="social-links">
<a href="#">Facebook</a>
<a href="#">Twitter</a>
<a href="#">LinkedIn</a>
</div>
</footer>
<script src="script.js"></script>
</body>
</html>
style.css)
/* General Styling */
body {
font-family: 'Arial', sans-serif;
margin: 0;
line-height: 1.6;
color: #333;
background-color: #f4f4f4;
}
.container {
max-width: 1100px;
margin: auto;
overflow: hidden;
padding: 0 20px;
}
/* Header & Navigation */
header {
background: #333;
color: #fff;
padding: 1rem 0;
border-bottom: #77aaff 3px solid;
}
header nav {
display: flex;
justify-content: space-between;
align-items: center;
max-width: 1100px;
margin: 0 auto;
padding: 0 20px;
}
.logo {
font-size: 1.8rem;
font-weight: bold;
}
header ul {
list-style: none;
margin: 0;
padding: 0;
display: flex;
}
header ul li {
margin-left: 20px;
}
header ul li a {
color: #fff;
text-decoration: none;
font-weight: bold;
transition: color 0.3s ease;
}
header ul li a:hover {
color: #77aaff;
}
/* Hero Section */
.hero {
background: #555 url('https://via.placeholder.com/1500x800/666/eee?text=Hero+Background') no-repeat center center/cover;
color: #fff;
text-align: center;
padding: 100px 20px;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
min-height: 400px;
}
.hero h1 {
font-size: 3rem;
margin-bottom: 20px;
}
.hero p {
font-size: 1.2rem;
margin-bottom: 30px;
max-width: 700px;
}
.hero button {
background: #77aaff;
color: #fff;
border: none;
padding: 15px 30px;
font-size: 1.1rem;
cursor: pointer;
border-radius: 5px;
transition: background 0.3s ease;
}
.hero button:hover {
background: #5588cc;
}
/* Section Styling */
main section {
padding: 60px 20px;
text-align: center;
background-color: #fff;
margin-bottom: 20px;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
main section:nth-child(even) {
background-color: #e2e2e2;
}
main section h2 {
font-size: 2.5rem;
margin-bottom: 30px;
color: #333;
}
/* About Section */
.about-section p {
max-width: 800px;
margin: 0 auto;
font-size: 1.1rem;
}
/* Services Section */
.service-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 30px;
max-width: 1000px;
margin: 40px auto 0;
}
.service-item {
background: #fff;
padding: 30px;
border-radius: 8px;
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
transition: transform 0.3s ease;
}
.service-item:hover {
transform: translateY(-5px);
}
.service-item h3 {
color: #77aaff;
margin-bottom: 15px;
font-size: 1.5rem;
}
.service-item p {
font-size: 1rem;
color: #555;
}
/* Contact Section */
.contact-section form {
max-width: 600px;
margin: 30px auto 0;
display: flex;
flex-direction: column;
gap: 15px;
}
.contact-section form input[type="text"],
.contact-section form input[type="email"],
.contact-section form textarea {
width: 100%;
padding: 12px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 1rem;
}
.contact-section form textarea {
min-height: 120px;
resize: vertical;
}
.contact-section form button {
background: #333;
color: #fff;
border: none;
padding: 15px 25px;
font-size: 1.1rem;
cursor: pointer;
border-radius: 5px;
transition: background 0.3s ease;
}
.contact-section form button:hover {
background: #555;
}
/* Footer */
footer {
background: #333;
color: #fff;
text-align: center;
padding: 30px 20px;
margin-top: 20px;
}
footer p {
margin-bottom: 15px;
}
.social-links a {
color: #fff;
text-decoration: none;
margin: 0 10px;
font-size: 1.1rem;
transition: color 0.3s ease;
}
.social-links a:hover {
color: #77aaff;
}
/* Responsive Design */
@media (max-width: 768px) {
header nav {
flex-direction: column;
}
header ul {
margin-top: 15px;
flex-wrap: wrap;
justify-content: center;
}
header ul li {
margin: 0 10px 10px 10px;
}
.hero h1 {
font-size: 2.5rem;
}
.hero p {
font-size: 1rem;
}
.service-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 480px) {
.hero h1 {
font-size: 2rem;
}
main section h2 {
font-size: 2rem;
}
}
script.js)
document.addEventListener('DOMContentLoaded', () => {
// Smooth scrolling for navigation links
document.querySelectorAll('nav ul li a').forEach(anchor => {
anchor.addEventListener('click', function (e) {
e.preventDefault();
document.querySelector(this.getAttribute('href')).scrollIntoView({
behavior: 'smooth'
});
});
});
// Basic form submission example (you'd typically send this to a backend)
const contactForm = document.querySelector('.contact-section form');
if (contactForm) {
contactForm.addEventListener('submit', function(e) {
e.preventDefault(); // Prevent default form submission
const name = this.querySelector('input[type="text"]').value;
const email = this.querySelector('input[type="email"]').value;
const message = this.querySelector('textarea').value;
if (name && email && message) {
alert(`Thank you, ${name}! Your message has been received. We will contact you at ${email}.`);
// In a real application, you would send this data to a server
// e.g., using fetch API:
/*
fetch('/api/contact', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON
\n