html5笔记..doc
文本预览下载声明
Html5 定义新标签
Form 表单里面
Artical 文章
article
h1Internet Explorer 9/h1
pWindows Internet Explorer 9(简称 IE9)于 2011 年 3 月 14 日发布/p
/article
Aside 页面内容之前的
pMe and my family visited The Epcot center this summer./p
aside
h4Epcot Center/h4
The Epcot Center is a theme park in Disney World, Florida.
/aside
input type=number , 数字
Type= range, 滑块
Type=date,
Type=color,
Type=search
Audio 音频插件
Web 存储:
localStroage, 长期存储没有时间限制
sessionStroage, 浏览器关闭丢失
新的doctype
!DOCTYPE html html5 的标准声明
!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN html4 的标准声明
CANVAS
图形或者说画板
Command 按钮(浏览器不支持)
下拉列表
input list=cars /
datalist id=cars
option value=BMW
option value=Ford
option value=Volvo
/datalist
定义元素细节 (summary
)
details
summaryCopyright 2011./summary
pAll pages and graphics on this web site are the property of W3School./p
/details
Embed 标签
嵌入一个动画
embed src=helloworld.swf /
Figure, 用着文档的插图 如果:
显示效果
footer
header
content
keygen 生产密钥
mark 突出显示部分文本:pDo not forget to buy markmilk/mark today./p
度量值 meter
p显示度量值:/p
meter value=3 min=0 max=103/10/meterbr
meter value=0.660%/meter
pb注释:/bInternet Explorer 不支持 meter 标签。/p
nav 定义导航连接
nav
a href=index.aspHome/a
a href=html5_meter.aspPrevious/a
a href=html5_noscript.aspNext/a/nav
Output 定义输出
form oninput=x.value=parseInt(a.value)+parseInt(b.value)0
input type=range id=a value=50100
+input type=number id=b value=50
=output name=x for=a b/output
/form
progress value=22 max=100
/progress 进度
section 文档中的区段
h1PRC/h1
pThe Peoples Republic of China was born in 1949.../p
/section
Track 播放带有字幕的视频
video width=320 height=240 controls=controls
source src=forrest_gump.mp4 type=video/mp4 /
source src=forrest_gump.ogg type=video/ogg /
track kind=subtitles src=subs_chi.srt srclang=zh label=Chinese
track kind=subtitles src=subs_eng.srt srclang=en label=English
/video
input?type=text?name=someInput?required=required 必填属性
input?type=text? 正则表达式
name=username?
id=userna
显示全部