-
Notifications
You must be signed in to change notification settings - Fork 0
/
temp.html
33 lines (31 loc) · 1.28 KB
/
temp.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Temperature converter</title>
<link rel="stylesheet" href="task3.css">
</head>
<body>
<div class="container flex-row justify-center align-center">
<div class="infocontainer flex-col justify-center align-center">
<form class="form" action="" onsubmit="caltemp(); return false">
<h2 class="mg">Enter the temperature you would like to convert</h2>
<div class="input">
<input type="number" class="number" name="temp" id="temp">
<select name="temp" id="temp_diff">
<option value="celsius">°Celsius</option>
<option value="Fahrenheit">°Fahrenheit</option>
</select>
</div>
<div class="center">
<button class="btn" type="submit" name="temp">Submit</button>
</div>
<div class="center mg-top" id='resultcontainer'></div>
</form>
</div>
</div>
<script src="script.js"></script>
</body>
</html>