-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
223 lines (213 loc) · 5.8 KB
/
index.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
<!doctype html>
<head>
<meta charset="utf-8">
<style type="text/css">
.clearfix:after {
content: "";
display: table;
clear: both;
}
aside {
background-color: #AB47BC;
width: 100px;
height: 500px;
float: right;
}
h1 {
color: #ef5350;
}
ul {
padding: 0px;
list-style-type: none;
}
li {
margin: 0px 20px;
float: left;
}
tr {
text-align: center;
}
</style>
<script type="text/javascript">
function message(){
alert("提示信息");
}
function confirm_test(){
confirm("确认?");
}
</script>
<title>HTML5页面结构(已修改 第五次)</title>
</head>
<body bgcolor="#81D4FA">
<header>
<h1>网站头部 放网站名 logo等</h1>
</header>
<nav class="clearfix">
<ul>
<li>
<a href="#">Home</a>
</li>
<li>
<a href="#">Services</a>
</li>
<li>
<a href="#">About us</a>
</li>
<li>
<a href="./part/LearnJquery.html">Jquery</a>
</li>
<li>
<a href="#">Services</a>
</li>
<li>
<a href="#">About us</a>
</li>
</ul>
</nav>
<article>
<aside>
<p>侧边栏</p>
<br />
</aside>
<h2>Web学习笔记</h2>
<section>
<hgroup>
<h3>1.HTML5新特性</h3>
<h4>视频和音频</h4>
</hgroup>
<p>2014年10月29日,万维网联盟宣布,经过几乎8年的艰辛努力,HTML5标准规范终于最终制定完成了,并已公开发布。</p>
<p>而HTML5的草稿版本在13年就已经放出。作为一个有追求的程序猿这次想赶一次潮流学习一下HTML5,并作一次笔记以便日后温故。</p>
<audio controls>
<source src="https://dn-shimo-attachment.qbox.me/txxFQQq8CBkfebVT/%E5%87%BA%E5%B1%B1.mp3" type="audio/mp3"></source>你的浏览器不支持此音频
</audio>
<br />
<video controls width="600px" height="400px">
<source src="https://dn-shimo-attachment.qbox.me/I3mJ6Vxc9mYQ566B/Ed_Sheeran_Shape_Of_You_cover_by_J.Fla_.mp4" type="video/mp4"></source>你的浏览器不支持此视频
</video>
<br />
<progress max="100" value="80"></progress>
<br />
<svg width="600" height="200">
<circle cx="100" cy="100" r="100" fill="red" />
<rect width="200" height="100" x="200" y="0" fill="green" />
<line x1="450" y1="50" x2="550" y2="150" style="stroke:#000000; stroke-linecap:round;stroke-width:10" />
<polyline style="stroke-linejoin:miter; stroke:black;stroke-width:12; fill: none;" points="100 100, 150 150, 200 100, 250 180" />
<polygon points="400 100, 500 200, 600 0" style="fill: yellow; stroke:black;" />
<ellipse cx="300" cy="100" rx="50" ry="70" style="fill:blue" />
<rect width="150" height="150" fill="orange">
<animate attributeName="x" from="0" to="300" dur="5s" fill="freeze" repeatCount="3" />
</rect>
<path d="M 0 0 L200 200 L200 0 Z" style="stroke:#000; fill:none;" />
</svg>
<br />
<form>
<label>姓名</label>
<input type="text" placeholder="输入姓名" equired/>
<label>年龄</label>
<input type="text" placeholder="输入年龄" list="agevalue" />
<datalist id="agevalue">
<option value=18>
<option value=19>
<option value=20>
<option value=21>
<option value=22>
</datalist>
<input type="submit" value="Submit" />
<input type="search" placeholder="搜索" />
</form>
</section>
<section>
<hgroup>
<h3>2.HTML基础</h3>
<h4>基本标记使用</h4>
</hgroup>
<p>
  首行缩进测试
</p>
<div>
<em>斜体强调</em>
<br />
<i>纯斜体效果</i>
<br />
<strong>粗体强调</strong>
<br />
<b>纯粗体效果</b>
<br />
<code>
var a=100;
var b=a+100;
printf("%d",b);
</code>
<hr color="red" size="7" />
<div class="clearfix">
<ol type="A" start="3">
<li>gdfgdfg</li>
<li>gdfgdfg</li>
<li>fgdfg</li>
</ol>
<ul>
<li>gdfgdfg</li>
<li>gdfgdfg</li>
<li>fgdfg</li>
</ul>
</div>
<a href="https://www.baidu.com" target="_blank">百度一下</a>
<a href="https://www.baidu.com" target="_blank">
<img width="100px" src="https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo/logo_white_fe6da1ec.png" />
</a>
<img src="" alt="图片名" />
</div>
</section>
<section>
<hgroup>
<h3>3.进阶</h3>
<h4>表格与表单</h4>
</hgroup>
<table border="2" cellspacing="0" cellpadding="10">
<caption>测试表格一</caption>
<tr>
<th>ID</th>
<th>name</th>
<th>age</th>
</tr>
<tr>
<td>1</td>
<td>mm</td>
<td>16</td>
</tr>
<tr>
<td>2</td>
<td>gg</td>
<td>12</td>
</tr>
<tr>
<td colspan="2">2</td>
<td rowspan="2">gg</td>
</tr>
<tr>
<td>2</td>
<td>gg</td>
</tr>
</table>
<form action="" method="post">
<select name="">
<option value="a">的的</option>
<option value="b">打等</option>
<option value="c">发顺丰</option>
</select>
<input type="text" placeholder="用户名"/>
<input type="password" placeholder="密码"/>
<textarea name="" rows="5" cols="20"></textarea>
<input type="button" value="alert警告测试" onclick="message()"/>
<input type="button" value="confirm确认测试" onclick="confirm_test()"/>
<input type="button" value="prompt提示测试" onclick="prompt('年龄?',18)"/>
<input type="submit" value="提交"/>
</form>
</section>
</article>
<footer><b>网站底部 放联系方式 商标©关于 版权信息等</b></footer>
<script type="text/javascript">
document.write("JS测试!");
</script>
</body>
</html>