-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
67 lines (58 loc) · 2.21 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Age Calculator</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div>
<span></span>
</div>
<main>
<!-- this contains the entire work -->
<div class="container">
<!-- this placeholder collects all the required user information -->
<div class="inputter">
<!-- this collects the day of birth -->
<div class="input-parent">
<label for="day">Day</label>
<input type="text" id="day" name="day" placeholder="DD">
<span class="error-day"></span>
</div>
<!-- this collects the month of birth -->
<div class="input-parent">
<label for="month">Month</label>
<input type="text" id="month" name="month" placeholder="MM">
<span class="error-month"></span>
</div>
<!-- this collects the year of birth -->
<div class="input-parent">
<label for="year">Year</label>
<input type="text" id="year" name="year" placeholder="YYYY">
<span class="error-year"></span>
</div>
</div>
<div class="line-arror">
<div class="hr">
<hr>
</div>
<!-- this buttun helps user to see their calculated age -->
<div class="icon">
<button id="calc_btn">
<img src="/icon-arrow.svg" alt="smile">
</button>
</div>
</div>
<!-- this returns the user age, month and day -->
<div class="Calculate">
<h1><span class="age-edit">_ _</span>Years</h1>
<h1> <span class="month-edit">_ _</span>Month</h1>
<h1><span class="day-edit">_ _</span>Day</h1>
</div>
</div>
</main>
<script src="script.js"></script>
</body>
</html>