Web Programming (Html & Css)
Web Programming (Html & Css)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Myanmar</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<nav>
<div class="container">
<h1>Welcome to Myanmar</h1>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Gallery</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
</nav>
</header>
<section class="hero">
<div class="container">
<h2>Welcome to Nature Retreat</h2>
<p>Escape to the serenity of nature and rejuvenate your soul.</p>
<a href="#" class="btn">Book Now</a>
</div>
</section>
<section class="about">
<div class="container">
<h2>About Us</h2>
<p>Computer Porgramming Langugage Class, Aung Lan Gone village, Letpandon Township in Bago division.</p>
</div>
</section>
<section class="gallery">
<div class="container">
<h2>Gallery</h2>
<div class="image-gallery">
<img src="image1.jpg" alt="Nature Image">
<img src="image2.jpg" alt="Nature Image">
<img src="image3.jpg" alt="Nature Image">
<!-- Add more images here -->
</div>
</div>
</section>
<footer>
<div class="container">
<p>© 2024 Nature Retreat. All rights reserved.</p>
</div>
</footer>
<script src="script.js"></script>
</body>
</html>
/* styles.css */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
h1{text-align: center;}
header {
background-color: #1abc9c;
padding: 20px 0;
color: yellow;
}
header nav ul {
list-style-type: none;
margin: 0;
padding: 0;
}
header nav ul li {
display: inline;
margin-right: 20px;
}
header nav ul li a {
color: white;
text-decoration: none;
}
.hero {
background-image: url('nature.jpg');
background-size: cover;
color: white;
text-align: center;
padding: 100px 0;
}
.hero h2 {
font-size: 3em;
margin-bottom: 20px;
}
.about {
background-color: #f5f5f5;
padding: 100px 0;
text-align: center;
}
.gallery {
text-align: center;
padding: 100px 0;
}
.image-gallery {
display: flex;
justify-content: center;
flex-wrap: wrap;
}
.image-gallery img {
width: 300px;
height: 200px;
margin: 10px;
}
footer {
background-color: #34495e;
color: white;
text-align: center;
padding: 20px 0;
}