background image

13. hgroup

一般在

header 里面用来将一组标题组合在一起,如

<header>

<hgroup>

<h1> Recall Fan Page </h1>

<h2> Only for people who want the memory of a lifetime. </h2>

</hgroup>

</header>

14. Required 属性

required 属性定义了一个 input 是否是必须的,你可以像下面这样声明

<input type=”text” name=”someInput” required>

或者

<input type=”text” name=”someInput” required=”required”>

15. Autofocus 属性

正如它的词义,就是聚焦到输入框里面

<input type=”text” name=”someInput” placeholder=”Douglas Quaid”  required autofocus>

16. Audio 支持

HTML5 提供了<audio>标签,你不需要再按照第三方插件来渲染音频,大多数现代浏览器
提供了对于

HTML5 Audio 的支持,不过目前仍旧需要提供一些兼容处理,如

<audio autoplay="autoplay" controls="controls">

找互联网资料,就到一览互联网文库

http://wk.yl1001.com/hlw/