-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
43 lines (33 loc) · 1.1 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<div class="instructions">
<h2>How to Use the Weather App</h2>
<ol>
<li>Enter the name of a city in the "Enter location" input field.</li>
<li>Select your preferred temperature unit (Celsius or Fahrenheit) from the "Select Unit" dropdown.</li>
<li>Click the "Get Weather" button to retrieve the current weather conditions for the specified location.</li>
</ol>
</div>
<h1>Weather App</h1>
<input type="text" id="locationInput" placeholder="Enter location">
<button id="getWeatherBtn">Get Weather</button>
<div id="weatherDisplay">
<div id="weather-info">
</div>
</div>
<div id="errorDisplay">
</div>
<label for="unitSelect">Select Unit:</label>
<select id="unitSelect">
<option value="metric">Celsius</option>
<option value="imperial">Fahrenheit</option>
</select>
</div>
<script src="app.js"></script>
</body>
</html>