帮我写一段完整的网页代码
时间: 2023-12-26 19:07:38 浏览: 178
<!DOCTYPE html>
<html>
<head>
<title>My Webpage</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Products</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
<h1>Welcome to my webpage!</h1>
</header>
<main>
<section>
<h2>About me</h2>
<p>Hi, my name is John and I'm a web developer. I love creating beautiful and functional websites that make people's lives easier.</p>
</section>
<section>
<h2>My products</h2>
<ul>
<li><a href="#">Product 1</a></li>
<li><a href="#">Product 2</a></li>
<li><a href="#">Product 3</a></li>
</ul>
</section>
<section>
<h2>Contact me</h2>
<form action="submit-form.php" method="post">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
<label for="message">Message:</label>
<textarea id="message" name="message" required></textarea>
<button type="submit">Send</button>
</form>
</section>
</main>
<footer>
<p>© 2021 My Webpage</p>
</footer>
</body>
</html>
阅读全文