HTML 5 <q> 標(biāo)簽
定義和用法
<q> 標(biāo)簽定義一個(gè)短的引用。
HTML 4.01 與 HTML 5 之間的差異
沒(méi)有。
提示和注釋
提示:請(qǐng)使用 cite 屬性來(lái)定義該引用的來(lái)源。
例子
這是一個(gè)短的引用: <q>這是一個(gè)短的引用:</q>
屬性
屬性 | 值 | 描述 | 4 | 5 |
---|---|---|---|---|
cite | url | 定義引用的引文。 | 4 | 5 |
標(biāo)準(zhǔn)屬性
class, contenteditable, contextmenu, dir, draggable, id, irrelevant, lang, ref, registrationmark, tabindex, template, title
如需完整的描述,請(qǐng)?jiān)L問(wèn) HTML 5 中標(biāo)準(zhǔn)屬性。
事件屬性
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
如需完整的描述,請(qǐng)?jiān)L問(wèn) HTML 5 中事件屬性。
TIY 實(shí)例
- 引用
- 此例演示如何實(shí)現(xiàn)長(zhǎng)短不一的引用語(yǔ)。