-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
31 lines (30 loc) · 1.32 KB
/
Copy pathindex.html
File metadata and controls
31 lines (30 loc) · 1.32 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>Time Convertor</title>
<link rel="icon" type="image/png" href="images/clock-icon.svg">
<link rel="stylesheet" href="css/cssReset.css">
<link rel="stylesheet" href="css/style.css">
<link href="https://fonts.cdnfonts.com/css/little-lord-fontleroy-nf" rel="stylesheet">
<script src="js/script.js"></script>
</head>
<body>
<h1 id="title">Time Convertor</h1>
<form name="time_form">
<input class="user_input" type="number" placeholder="HOUR" name="hour" min="1" max="12" required>
<p class="msg">Hours must be in between 1 and 12.</p>
<input class="user_input" type="number" name="minutes" placeholder="MINUTES" min="0" max="59" required>
<p class="msg">Minutes must be in between 0 and 59.</p>
<input class="user_input" type="number" name="seconds" placeholder="SECONDS" min="0" max="59" required>
<p class="msg">Seconds must be in between 0 and 59.</p>
<select name="time" required>
<option value="AM" selected>AM</option>
<option value="PM">PM</option>
</select>
<button type="submit">CONVERT</button>
</form>
<h1 class="user_input formatted_time" id="formatted_time"></h1>
</body>
</html>