根据上面的demo搭建一个简单的index页面
时间: 2023-06-02 19:01:40 浏览: 71
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>My Website</title>
</head>
<body>
<header>
<h1>Welcome to My Website</h1>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
</header>
<main>
<h2>Latest News</h2>
<article>
<h3>New Product Launch</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum vel nisi euismod, pulvinar leo quis, hendrerit felis. Sed dictum tellus nisl, eget faucibus neque eleifend id. Praesent euismod vel est sed pharetra. </p>
<a href="#">Read More</a>
</article>
<article>
<h3>Upcoming Event</h3>
<p>Nullam feugiat urna eu laoreet commodo. Nam pharetra augue vitae risus venenatis, id luctus magna euismod. Aenean euismod nisi vel felis fringilla, vel commodo ipsum rhoncus. </p>
<a href="#">Read More</a>
</article>
</main>
<footer>
<p>© 2021 My Website. All rights reserved.</p>
</footer>
</body>
</html>
阅读全文