HTML SPINNING FORM
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Weather App</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<h2>Weather App</h2>
<input type="text" id="city" placeholder="Enter city name">
<button onclick="getWeather()">Get Weather</button>
<div id="weather-info"></div>
</div>
<script src="script.js"></script>
</body>
</html>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
}
.container {
width: 300px;
margin: 50px auto;
padding: 20px;
background:white;
box-shadow: -1px -1px 15px rgba(0,0,0,1) inset;
border-radius:15px;
}
input {
width: 80%;
padding: 8px;
margin-bottom:30px;
outline:0px;
}
button {
padding: 8px 45px;
background: #28a745;
color:white;
border: none;
cursor: pointer;
border-radius:6px;
}
button:hover {
background: #218838;
}
#weather-info {
margin-top: 20px;
font-size: 18px;
}
</style>