-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
112 lines (109 loc) · 2.92 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
<!DOCTYPE html>
<html>
<head>
<title>Automated Website Validator</title>
</head>
<body>
<h1 data-hook="header" class="dummy1 dummy2">My First Heading</h1>
<p data-hook="paragraph">My first paragraph.</p>
<p data-hook="with-slot"><slot>Text in Slot</slot></p>
<div data-hook="div-with-span"><span>Text</span></div>
<p data-cy="default">default data attribute</p>
<button disabled style="background-color: red" data-hook="button">
Click Me</button
><br />
<img
src="w3schools.jpg"
alt="W3Schools.com"
width="104"
height="142"
data-hook="image"
/>
<form data-hook="form" id="myForm">
<label for="fname" data-hook="name-label">First name:</label><br />
<input
type="text"
id="fname"
name="fname"
value="John"
data-hook="name-input"
/><br />
<label for="lname" data-hook="last-name-label">Last name:</label><br />
<input
type="text"
data-hook="last-name-input"
id="lname"
name="lname"
value="Doe"
/><br /><br />
<input
type="checkbox"
id="vehicle1"
name="vehicle1"
value="Bike"
data-hook="checkbox"
/>
<label for="vehicle1"> I have a bike</label><br />
<input
type="checkbox"
id="vehicle2"
name="vehicle2"
value="Car"
data-hook="checkbox"
/>
<label for="vehicle2"> I have a car</label><br />
<input
type="checkbox"
id="vehicle3"
name="vehicle3"
value="Boat"
data-hook="checkbox"
/>
<label for="vehicle3"> I have a boat</label>
<div data-hook="radio-group">
<input
type="radio"
id="html"
name="fav_language"
value="HTML"
data-hook="radio"
/>
<label for="html">HTML</label><br />
<input
type="radio"
id="css"
name="fav_language"
value="CSS"
data-hook="radio"
/>
<label for="css">CSS</label><br />
<input
type="radio"
id="javascript"
name="fav_language"
value="JavaScript"
data-hook="radio"
/>
<label for="javascript">JavaScript</label>
</div>
<label for="cars">Choose a car:</label>
<select data-hook="select" name="cars" id="cars">
<option data-hook="option" value="volvo">Volvo</option>
<option data-hook="option" value="saab">Saab</option>
<option data-hook="option" value="mercedes">Mercedes</option>
<option data-hook="option" value="audi">Audi</option>
</select>
<input
type="submit"
value="Submit"
data-hook="submit"
onclick="resetForm()"
/>
</form>
<script>
function resetForm() {
document.getElementById("myForm").reset();
}
</script>
</body>
</html>