-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathform1
38 lines (32 loc) · 1.51 KB
/
form1
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
<DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="wide=device-width, initial-scale=1.0">
<meta name="description" content="This is a practice form">
<title>Practice Form</title>
<style>
label{
display: block;
}
</style>
</head>
<body>
<form action="#" method="GET">
<fieldset>
<legend>Contact Us</legend>
<label for="firstname">First Name:</label><input type="text" name="firstname" id="firstname" required>
<label for="lastname">Last Name:</label><input type="text" name="lastname" id="lastname" required>
<label for="email">Email:</label><input type="text" name="email" id="email" type="email" required>
<label for="phone">Phone Number:</label><input type="text" name="phone" id="phone" required>
<fieldset>
<legend>Preferred Contact Method</legend>
<input type="radio" id="email" name="contact" value="email">
<label for="email">Email</label><br>
<input type="radio" id="phone" name="contact" value="phone">
<label for="phone">Phone</label><br>
</fieldset>
</fieldset>
</form>
</body>
</html>