用html写一个前端页面
时间: 2023-10-05 13:05:03 浏览: 56
<!DOCTYPE html>
<html>
<head>
<title>My Frontend Page</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
</head>
<body>
<header>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Portfolio</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
<h1>Welcome to My Frontend Page</h1>
<p>This is a sample page created using HTML and CSS</p>
</header>
<main>
<section>
<h2>About Me</h2>
<p>Hi, I'm John. I'm a frontend developer based in San Francisco. I specialize in creating beautiful and responsive websites using HTML, CSS, and JavaScript.</p>
</section>
<section>
<h2>Portfolio</h2>
<div class="gallery">
<a href="#"><img src="img/gallery1.jpg" alt="Gallery Image 1"></a>
<a href="#"><img src="img/gallery2.jpg" alt="Gallery Image 2"></a>
<a href="#"><img src="img/gallery3.jpg" alt="Gallery Image 3"></a>
<a href="#"><img src="img/gallery4.jpg" alt="Gallery Image 4"></a>
<a href="#"><img src="img/gallery5.jpg" alt="Gallery Image 5"></a>
<a href="#"><img src="img/gallery6.jpg" alt="Gallery Image 6"></a>
</div>
</section>
<section>
<h2>Contact Me</h2>
<form action="#" 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 Message</button>
</form>
</section>
</main>
<footer>
<p>© 2021 My Frontend Page</p>
</footer>
</body>
</html>
阅读全文