-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
63 lines (54 loc) · 2.32 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <!-- displays site properly based on user's device -->
<link rel="icon" type="image/png" sizes="32x32" href="./assets/images/favicon-32x32.png">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
<title>Frontend Mentor | Age calculator app</title>
</head>
<body>
<div id="container"> <!--Define container-->
<form id="formageApp"> <!--Structure the form in two part-->
<div class="input-date"> <!--first part input dates-->
<div class="form-date">
<label class="lbl-label" for="txt-day" >DAY</label>
<input type="text" class="txt-text" id="txt-day" name="day" placeholder="DD"></input>
<span class="error" id="error-day"></span>
</div>
<div class="form-date">
<label class="lbl-label" for="txt-month">MONTH</label>
<input type="text" class="txt-text" id="txt-month" name="month" placeholder="MM"></input>
<span class="error" id="error-month"></span>
</div>
<div class="form1 form-date">
<label class="lbl-label" for="txt-year">YEAR</label>
<input type="text" class="txt-text" id="txt-year" name="year" placeholder="YYYY"></input>
<span class="error" id="error-year"></span>
</div>
<button type="submit" class="btn-circle" id="btn-enviar"><span></span></button>
</div>
<div class="output-date"> <!--Second part output date-->
<div class="forms form-years">
<p class="state-date" id="state-years">--</p>
<h2 class="txt-state">years</h2>
</div>
<div class="forms form-month">
<p class="state-date" id="state-month">--</p>
<h2 class="txt-state">months</h2>
</div>
<div class="forms form-day">
<p class="state-date" id="state-day">--</p>
<h2 class="txt-state">days</h2>
</div>
</div>
</form>
</div>
<div class="attribution">
Challenge by <a href="https://www.frontendmentor.io?ref=challenge" target="_blank">Frontend Mentor</a>.
Coded by <a href="#">Ariel Bodan</a>.
</div>
<script src="/script.js"></script>
</body>
</html>