HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<title>Weather Wonders App</title>
</head>
<body>
<header>
<h1>Weather Wonders</h1>
<input type="text" placeholder="Enter city name">
</header>
<main>
<section class="current-weather">
<h2>Current Weather</h2>
<img src="weather-icons/sunny.png" alt="Sunny">
<p>Temperature: 72°F</p>
<p>Conditions: Sunny</p>
</section>
<section class="forecast">
<h2>7-Day Weather Forecast</h2>
<table>
<tr>
<th>Mon</th>
<th>Tue</th>
<th>Wed</th>
<th>Thu</th>
</tr>
<tr>
<td>75°F</td>
<td>78°F</td>
<td>73°F</td>
<td>79°F</td>
</tr>
<tr>
<td>Sunny</td>
<td>Rain</td>
<td>Cloudy</td>
<td>Sunny</td>
</tr>
</table>
</section>
</main>
<footer>
<button>Travel Planner</button>
<button>Sunrise & Sunset Times</button>
</footer>
</body>
</html>
CSS
/* Reset some default styles */
body, h1, h2, p, table {
margin: 0;
padding: 0;
}
/* Define overall styles */
body {
font-family: Arial, sans-serif;
background-color: #f0f0f0;
}
header {
background-color: #3498db;
color: #fff;
padding: 10px;
text-align: center;
}
header h1 {
font-size: 24px;
}
input[type="text"] {
width: 80%;
padding: 5px;
border: none;
border-radius: 5px;
margin-top: 10px;
}
main {
padding: 20px;
}
section {
background-color: #fff;
border: 1px solid #ddd;
border-radius: 5px;
padding: 10px;
margin-bottom: 20px;
}
h2 {
font-size: 20px;
margin-bottom: 10px;
}
img {
max-width: 100px;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 10px;
}
table, th, td {
border: 1px solid #ddd;
}
th, td {
padding: 5px;
text-align: center;
}
footer {
background-color: #3498db;
text-align: center;
padding: 10px;
}
button {
background-color: #fff;
color: #3498db;
border: none;
padding: 10px 20px;
margin: 5px;
border-radius: 5px;
cursor: pointer;
}
button:hover {
background-color: #3498db;
color: #fff;
}