HTML5 <q> 标签

定义和用法

<q> 标签定义一个短的引用。

HTML 4.01 与 HTML5 之间的差异

没有。

提示和注释

提示:请使用 cite 属性来定义该引用的来源。

例子

这是一个短的引用:
<q>这是一个短的引用:</q>

属性

属性 描述 4 5
cite url 定义引用的引文。 4 5

标准属性

class, contenteditable, contextmenu, dir, draggable, id, irrelevant, 
lang, ref, registrationmark, tabindex, template, title

如需完整的描述,请访问 HTML5 中标准属性

事件属性

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

如需完整的描述,请访问 HTML5 中事件属性

TIY 实例

引用
此例演示如何实现长短不一的引用语。

Copyright © 2009-2011 Web前端开发-Web前端工程师 | Web前端学习之路 版权所有