-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
115 lines (115 loc) · 3.62 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta
name="description"
content="Age Calculator App - Calculate your exact age in years, months, and days."
/>
<meta
name="keywords"
content="age calculator, age in years, months, days, birthday calculator"
/>
<meta name="author" content="Styn1s" />
<link rel="stylesheet" href="./css/main.css" />
<link rel="preload" href="./css/main.css" as="style" />
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"
/>
<title>Age Calculator App</title>
</head>
<body>
<main class="main">
<section class="form" aria-label="Age calculator section">
<form
class="form__body"
id="ageForm"
action="#"
aria-labelledby="ageForm"
onsubmit="return onFormSubmit(event)"
>
<ul class="form__list">
<li class="form__item">
<label class="form__label" for="day">DAY</label><br />
<input
class="form__input"
type="number"
id="day"
name="day"
placeholder="DD"
aria-required="true"
aria-describedby="day-error"
/>
<p
class="input__error-text"
id="day-error"
aria-live="polite"
></p>
</li>
<li class="form__item">
<label class="form__label" for="month">MONTH</label><br />
<input
class="form__input"
type="number"
id="month"
name="month"
placeholder="MM"
aria-required="true"
aria-describedby="month-error"
/>
<p
class="input__error-text"
id="month-error"
aria-live="polite"
></p>
</li>
<li class="form__item">
<label class="form__label" for="year">YEAR</label><br />
<input
class="form__input"
type="number"
id="year"
name="year"
placeholder="YYYY"
aria-required="true"
aria-describedby="year-error"
/>
<p
class="input__error-text"
id="year-error"
aria-live="polite"
></p>
</li>
</ul>
<div class="main__divider">
<button
class="main__button"
type="submit"
aria-label="Calculate Age"
></button>
</div>
</form>
</section>
<section class="age" aria-live="polite">
<h1 class="age__years-title">
<span class="age__calc-years" id="year-span" aria-live="polite"
>--</span
>years
</h1>
<h1 class="age__months-title">
<span class="age__calc-months" id="month-span" aria-live="polite"
>--</span
>months
</h1>
<h1 class="age__days-title">
<span class="age__calc-days" id="day-span" aria-live="polite">--</span
>days
</h1>
</section>
</main>
<script src="index.js"></script>
</body>
</html>