标签HTML 5 标签 HTML 5
属性 | 值 | 描述 | 4 | 5 |
---|---|---|---|---|
async |
|
定义脚本是否异步执行。 | 5 | |
type |
|
指示脚本的 MIME 类型。 | 4 | 5 |
charset | charset | 定义脚本中使用的字符编码。不支持。 | 4 | |
defer |
|
指示脚本不会生成任何的文档内容。浏览器可以继续解析并绘制页面。 | 4 | 5 |
language |
|
规定脚本语言。不赞成使用。请使用 type 属性代替它。 | 4 | |
src | URL | 定义指向包含脚本的文件的 URL(这样您就可以引用某个包含脚本的文件,而不是直接把脚本插入您的 HTML 文档中)。 | 4 | 5 |
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 中事件属性。