旅游网站简单的html代码模板
时间: 2023-05-26 10:02:51 浏览: 60
<!DOCTYPE html>
<html>
<head>
<title>My Travel Website</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<header>
<h1>My Travel Website</h1>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Destinations</a></li>
<li><a href="#">Tours</a></li>
<li><a href="#">Contact</a></li>
</ul>
</nav>
</header>
<main>
<section id="hero">
<h2>Welcome to My Travel Website</h2>
<p>Explore the world with us!</p>
<a href="#" class="btn">Book Now</a>
</section>
<section id="destinations">
<h3>Featured Destinations</h3>
<ul>
<li>
<img src="destination1.jpg" alt="Destination 1">
<h4>Destination 1</h4>
<p>Discover the beauty of Destination 1.</p>
<a href="#" class="btn">Learn More</a>
</li>
<li>
<img src="destination2.jpg" alt="Destination 2">
<h4>Destination 2</h4>
<p>Experience the adventure of Destination 2.</p>
<a href="#" class="btn">Learn More</a>
</li>
<li>
<img src="destination3.jpg" alt="Destination 3">
<h4>Destination 3</h4>
<p>Relax and unwind in Destination 3.</p>
<a href="#" class="btn">Learn More</a>
</li>
</ul>
</section>
<section id="tours">
<h3>Featured Tours</h3>
<ul>
<li>
<img src="tour1.jpg" alt="Tour 1">
<h4>Tour 1</h4>
<p>Experience the best of Destination 1 with Tour 1.</p>
<a href="#" class="btn">Learn More</a>
</li>
<li>
<img src="tour2.jpg" alt="Tour 2">
<h4>Tour 2</h4>
<p>Discover the hidden gems of Destination 2 with Tour 2.</p>
<a href="#" class="btn">Learn More</a>
</li>
<li>
<img src="tour3.jpg" alt="Tour 3">
<h4>Tour 3</h4>
<p>Relax and unwind with Tour 3 in Destination 3.</p>
<a href="#" class="btn">Learn More</a>
</li>
</ul>
</section>
<section id="contact">
<h3>Contact Us</h3>
<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" class="btn">Send</button>
</form>
</section>
</main>
<footer>
<p>© 2021 My Travel Website</p>
</footer>
</body>
</html>