-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathHTML-Exercise.html
76 lines (76 loc) · 2.61 KB
/
HTML-Exercise.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
<!-- #Only 1 radio button should be selectable -->
<!-- #File not uploading -->
<!-- #Use table or some constructs for aligning, instead of -->
<!-- #Please follow proper indentation -->
<!-- #Background color missing -->
<html>
<head>
<title>Contact Form</title>
<meta name ="description" content="HTML Contact Form" />
<meta name ="author" content="Nitin Gupta" />
</head>
<body bgcolor="#E8E8E8">
<h3>Contact Form</h3>
<br />
<form action="" method="">
<table border="0">
<tr>
<td>Your Name*:</td>
<td><input type="text" name="name" /></td>
</tr>
<tr>
<td>E-mail*:</td>
<td><input type="text" name="email" style="background-color:yellow" /></td>
</tr>
<tr>
<td>Phone number:</td>
<td><input type="text" name="phone" style="background-color:yellow" /></td>
</tr>
<tr>
<td>Website* :</td>
<td><input type="text" name="website" value="http://" size="40"></td>
</tr>
</table>
Comments* :<br />
<textarea rows="8" cols="35">
</textarea><br /><br />
<b>Text field</b><br />
Your Name : <input type="text" name="yname" style="background-color:yellow" /><br /><br />
<b>Password field</b><br />
Password : <input type="password" name="password"><br /><br />
<b>Radio buttons</b><br />
Do you like pizza?<br />
<input type="radio" name="like" value="yes"/>Yes<br />
<input type="radio" name="like" value="no" checked="checked"/>No<br />
<input type="radio" name="like" value="may"/>May be<br />
<input type="radio" name="like" value="never"/>Never tried<br /><br />
<b>Checkbox</b><br />
<input type="checkbox" name="like">Check this box if you like our service<br /><br />
Anything you would like to say?<br />
<textarea rows="5" cols="40">
</textarea><br /><br />
<b>I like</b><br />
<select name="veg" size="5">
<option value="mush">mushrooms</option>
<option value="pepp">green peppers</option>
<option value="onion">onion</option>
<option value="tom">tomatoes</option>
<option value="olives">olives</optiont>
</select><br /><br />
<b>Menu</b><br />
Your favourite color:<br />
<select name="color">
<option value="yellow">Yellow</option>
<option value="green">Green</option>
<option value="red" selected="selected">Red</option>
<option value="Purple">Purple</option>
</select><br /><br />
<b>Attach file</b><br />
<input type="text" name="file" size="40" />
<input type="file" name="find" value="Browse" /><br /><br />
<b>Buttons</b><br />
<input type="submit" name="sub" /></a>
<input type="reset" name="res" />
</form>
</body>
</html>