-
Notifications
You must be signed in to change notification settings - Fork 0
/
form.html
160 lines (144 loc) · 4.38 KB
/
form.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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Web page example">
<title>USABILITY</title>
<style>
body {
background-color: whitesmoke;
}
form{
background-color: #fff;
padding: 20px;
}
/* .redone{
color: red;
}
#blueone{
color: blue;
}
button#blueone {
color: darkslateblue;
}
*{
color: yellowgreen;
}
label,p{
color: purple;
}
form p{
color:sandybrown;
}
form.redone{
color: darkred;
}
form label.redone{
color: lightcoral;
}
p{
color: gray;
}
form > label {
color: green;
} */
/* input[type=checkbox] + label {
border: 1px solid red;
color: red;
} */
/* input[type=checkbox] ~ label {
border: 1px solid red;
color: red;
} */
div {
background-color: blueviolet;
}
#alex-theme a {
display: block;
background-color: cadetblue;
}
#hector-theme div {
background-color: blue;
}
a {
display: block;
background-color: green;
}
a[href^="https"] {
color: yellow;
background-color: blue;
}
a[href$="/"] {
color: red;
background-color: purple;
}
a[href$=".pdf"] {
color: red;
background-color: purple;
}
a[href*="www"] {
color: burlywood;
background-color: brown;
}
form div img {
width: 10px;
height: 10px;
right: -5px;
top: -5px;
position: absolute;
}
div {
position: relative;
}
/* const a = /^[ab]+$/ */
</style>
</head>
<body>
<form action="#">
<label for="name">Firstname</label>
<input type="text" id="fname" name="fname" required><br><br>
<label for="lastname">Lastname</label>
<input type="text" id="lname" name="lname"><br><br>
<label for="email">email</label>
<input type="email" id="lname" name="email" required><br><br>
<label class="redone" for="password">password</label>
<input type="password" id="password" name="password" required><br><br>
<label id="blueone" for="password">confirm password</label>
<input type="password" id="cpassword" name="cpassword" required><br><br>
<p>Please select your gender:</p>
<input type="radio" id="male" name="gender" value="male" required>
<label for="male">Male</label><br>
<input type="radio" id="female" name="gender" value="female">
<label for="female">Female</label><br><br>
<p>Please select your favorite books:</p>
<input type="checkbox" id="book1" name="book1" value="book1">
<label for="book1">book1</label><br><br>
<input type="checkbox" id="book2" name="book2" value="book2">
<label for="book2">book2</label><br><br>
<input type="checkbox" id="book3" name="book3" value="book3">
<label for="book3">book3</label><br><br>
<input type="checkbox" id="book4" name="book4" value="book4">
<span>hehehe</span>
<label for="book4">book4</label><br><br>
<input type="checkbox" id="book5" name="book5" value="book5">
<span>hehehe</span>
<label for="book5">book5</label><br><br>
<button id="blueone">submit</button>
</form> <br><br>
<p class="redone">Please select your favorite books:</p>
<p>Please select your favorite books:</p>
<p class="redone" id="blueone">Please select your favorite books:</p>
<form id="game" action="">
<label for="">Label</label>
<p>paragraph</p>
<div>
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/0/02/Red_Circle%28small%29.svg/1200px-Red_Circle%28small%29.svg.png" alt="">
<label for="">Links</label>
<a href="xhttps://www.freecodecamp.org/learn/responsive-web-design/">Responsive Web Course</a>
<a href="https://stackoverflow.com/questions/49603939/message-async-callback-was-not-invoked-within-the-5000-ms-timeout-specified-by">Stackoverflow</a>
<a href="https://playwright.dev/docs/intro/">Playwright docs</a>
<a href="localhost:8000/es/">Localhost</a>
</div>
</form>
</body>