定义和用法
标签为媒介元素(比如 和 )定义媒介资源。
HTML 4.01 与 HTML 5 之间的差异
标签是 HTML 5 中的新标签。
属性
属性
值
描述
media
media query
定义媒介资源的类型,供浏览器决定是否下载。
src
url
媒介的 URL。
type
numeric value
定义播放器在音频流中的什么位置开始播放。默认地,音频从开头播放。
标准属性
class, contenteditable, contextmenu, dir, draggable, id, irrelevant,
lang, ref, registrationmark, tabindex, template, title
如需完整的描述,请访问 HTML 5 中标准属性。
事件属性
onabort, onbeforeunload, onblur, onchange, onclick, oncontextmenu,
ondblclick, ondrag, ondragend, ondragenter, ondragleave, ondragover,
ondragstart, ondrop, onerror, onfocus, onkeydown, onkeypress, onkeyup,
onload, onmessage, onmousedown, onmousemove, onmouseover, onmouseout,
onmouseup, onmousewheel, onresize, onscroll, onselect, onsubmit, onunload
如需完整的描述,请访问 HTML 5
中事件属性。