forked from guyjin/htmlClass
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathformExample.html
More file actions
31 lines (31 loc) · 1.1 KB
/
formExample.html
File metadata and controls
31 lines (31 loc) · 1.1 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
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>Form Example</title>
<link rel="stylesheet" href="formExample.css"/>
<link href='http://fonts.googleapis.com/css?family=Open+Sans:800italic,400,600,700,800' rel='stylesheet'
type='text/css'>
<!--[if IE lte 8]>
Special instructions for IE 6 here
<![endif]-->
</head>
<body>
<div class="form">
<h1>Name Form</h1>
<form action="formTarget.html" method="get">
<label for="name">Name: </label>
<input type="text" name="name" id="name" placeholder="Your name please" autofocus required />
<label for="color">Favorite Color:</label>
<select name="color" id="color" required>
<option value="">select a color</option>
<option value="blue">blue</option>
<option value="green">green</option>
<option value="red">red</option>
</select>
<input type="submit" value="submit"/>
<input type="reset" value="reset"/>
</form>
</div>
</body>
</html>