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

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 footerHTML4: div div

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

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

keygen 标签定义生成密钥。 HTML5:keygenHTML4: none

posted @ 2015-12-20 16:34  闫少科  阅读(180)  评论(0编辑  收藏  举报