简单html静态网页代码
时间: 2023-09-21 09:09:15 浏览: 48
Sure, here's a simple HTML code for a static webpage:
```html
<!DOCTYPE html>
<html>
<head>
<title>My Static Webpage</title>
</head>
<body>
<header>
<h1>Welcome to My Static Webpage</h1>
</header>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
<main>
<section>
<h2>About</h2>
<p>This is a simple static webpage.</p>
</section>
<section>
<h2>Contact</h2>
<p>You can reach me at example@example.com.</p>
</section>
</main>
<footer>
<p>© 2022 My Static Webpage. All rights reserved.</p>
</footer>
</body>
</html>
```
This code represents a basic structure for a static webpage with a header, navigation, main content, and footer sections. Feel free to customize it according to your needs.