-
Notifications
You must be signed in to change notification settings - Fork 0
/
表单.html
83 lines (77 loc) · 2.41 KB
/
表单.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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<meta charset= "utf-8">
<head>
<title>布局</title>
</head>
<body>
<div id="container" style="width:800px" >
<div id="header" style="background-color: #FFA500"
<h1 style="margin-bottom:0">Main Title of Web Page </h1></div>
<div id="menu" style="background-color: yellow;height: 200px;width:100px;float:left ">
<b>Meun:</b><br>
HTNL<br>
CSS<br>
JavaScript<br></div>
<div id="content" style="background-color:white;height: 200px;width:700;float:left ">
Content goes here</div>
<div id="footer" style="background-color: #FFA500;clear:both;text-align:center;">
Copyright@Conky</div>
</div>
<h4>文本域;</h4>
<from>
姓:<input type="text" name="姓"><br>
名:<input type="text" name="名"
</from>
<h4>密码字段;</h4>
<from>
密码:<input type="password" name="pwd">
</from>
<h4>单选按钮;</h4>
<from>
<input type="radio" name="sex" vaule="男">男<br>
<input type="radio" name="sex" vaule="女">女<br>
</from>
<h4>复选框:</h4>
<from>
<input type="checkbox" name="vehicle" value="Bike">I HAVE bike<br>
<input type="checkbox" name="CHE" value="Car">i have car
</from>
<h4>提交按钮:</h4>
<from name="input" action="html_from_cation.php" method="get">
usename;<input type="text" name="user">
<input type="submit" value="submit"
</from>
<h4>简单的下拉列表:</h4>
<from action="">
<select name="cars">
<option value="volvo">volvo</option>
<option value="saad">saad</option>
<option value="fiat">fiat</option>
<option value="audi">audi</option>
</select>
</from>
<h4>文本域</h4>
<textarea rows="10" cols="30">我是一个文本框</textarea>
<h4>创建按钮</h4>
<from action="">
<input type="button" value="Hello Wrold">
</from>
<h4>带边框的表单></h4>
<from action="">
<fieldset>
<legend>Pssrsonal information</legend>
Name:<input type="text" size="30"><br>
E-mail:<input type="text" size="30"><br>
Date of birth:<input type="text" size="10">
</fieldset>
</from>
<h4>带有输入框和确认按钮的表单</h4>
<from action="F:\conky\demo-form.php" method="post">
First name:<input type="text" name="firstname " value="Mickey"><br>
Last name:<input type="text" name="lastname" value="Mouse"<br>
<input type="submit" value="提交">
</from>
</body>
</html>