您的位置:首页 > Web前端 > HTML5

HTML5新标签的用法和HTML4的区别

2015-12-20 16:34 597 查看
embed 标签定义嵌入的内容,比如插件。
HTML5: embed src="horse.wav"
HTML4: object data="flash.swf"  type="application/x-shockwave-flash" object


figcaption 标签定义 figure 元素的标题。”figcaption” 元素应该被置于 “figure” 元素的第一个或最后一个子元素的位置。
HTML5:figure figcaptionPRC figcaption  figure
HTML4: none


figure标签用于对元素进行组合。使用 figcaption 元素为元素组添加标题。
HTML5:  figure figcaption PRC figcaption pThe People's Republic of China was born in 1949... p figure
HTML4:  dl  h1 PRC  h1 p The People's Republic of China was born in 1949... p dl


footer>标签定义 section 或 document
的页脚。典型地,它会包含创作者的姓名、文档的创作日期以及/或者联系信息。
HTML5:
footer footer
HTML4: div
div


header 标签定义 section 或 document 的页眉。
HTML5: header

HTML4: div


hgroup 标签用于对网页或区段section的标题进行组合。
HTML5: hgrouphgroup

HTML4: div


keygen 标签定义生成密钥。
HTML5:keygen
HTML4:
none
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: