Repository navigation
Expand file tree
/
Copy pathP6.html
More file actions
87 lines (69 loc) · 1.7 KB
/
Copy pathP6.html
File metadata and controls
87 lines (69 loc) · 1.7 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Form Example</title>
<style>
body {
font-family: Arial;
background: linear-gradient(to right, #cfd8e6, #e6ecf5);
}
.container {
width: 700px;
margin: 40px auto;
}
fieldset {
margin-bottom: 20px;
padding: 20px;
}
label {
display: inline-block;
width: 130px;
margin-bottom: 10px;
}
input {
margin-bottom: 10px;
}
.buttons {
margin-top: 10px;
}
</style>
</head>
<body>
<div class="container">
<form>
<!-- Basic Information -->
<fieldset>
<legend>Basic information</legend>
<label>Full name:</label>
<input type="text"><br>
<label>Birth date:</label>
<input type="text"><br>
<label>Gender:</label>
<input type="radio" name="gender"> Male
<input type="radio" name="gender"> Female
<br><br>
<label>Address:</label>
<input type="text"><br>
<label>Phone number:</label>
<input type="text"><br>
</fieldset>
<!-- Extra Information -->
<fieldset>
<legend>Extra information</legend>
<label>Interests:</label>
<input type="checkbox"> Books
<input type="checkbox"> Movies
<input type="checkbox"> Videogames
<br><br>
<label>Favorite color:</label>
<input type="color">
</fieldset>
<!-- Buttons -->
<div class="buttons">
<input type="submit" value="Send data">
<input type="reset" value="Reset form">
</div>
</form>
</div>
</body>
</html>