-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweather.html
43 lines (37 loc) · 1.6 KB
/
weather.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 lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="keywords" content="weatherbyadarsh.netlify.app">
<title>Weather app</title>
<link rel="website icon" href="weather.png">
<link rel="stylesheet" href="weather.css">
</head>
<body>
<section class="container">
<h1>Weather App</h1>
<span class="add"><img src="magnifier.png" alt="" class="adding" width="35"></span>
<form>
<input type="text" class="text" placeholder="Enter city name" required autocomplete="off" autocapitalize="on">
<img src="magnifier.png" alt="" class="btn"><br>
<span class="invalid"></span>
</form><h1 class="error"></h1>
<div class="main">
<span class="name">Mysore</span><br>
<span class="temp">30°C</span><br>
<span class="icon"><img class="i-img" src="https://openweathermap.org/img/wn/02d@2x.png" alt="Weather condition" width="200px" height="150"></span><br>
<span class="condition">Clouds</span><br>
</div>
<div class="last">
<span class="humid"><img class="h-img" src="humidity.png" width="70">
<aside class="h">70 %</aside>
</span>
<span class="wind"><img class="w-img" src="wind.png" width="70">
<aside class="w">5.5 m/s</aside>
</span></div>
</section>
</body>
<script src="weather.js"></script>
</html>
<!-- {temp: 16.02, humid: 49, condition: 'Clouds', wind: 6.17, icon: '02d'} -->