HTML 5 <ins> 標(biāo)簽
定義和用法
<ins> 標(biāo)簽定義文檔的其余部分之外的插入文本。
HTML 4.01 與 HTML 5 之間的差異
沒有。
例子
提示:請(qǐng)與 <del> 標(biāo)簽一起使用,來描述對(duì)文檔的更新和修正。
屬性
屬性 | 值 | 描述 | 4 | 5 |
---|---|---|---|---|
cite | URL | 指向另一個(gè)文檔的 URL,該文檔解釋文本插入的原因。 | 4 | 5 |
datetime | YYYYMMDD | 定義文本插入的日期和時(shí)間。 | 4 | 5 |
標(biāo)準(zhǔn)屬性
class, contenteditable, contextmenu, dir, draggable, id, irrelevant, lang, ref, registrationmark, tabindex, template, title
如需完整的描述,請(qǐng)?jiān)L問 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問 HTML 5 中事件屬性。
TIY 實(shí)例
- 刪除字效果和插入字效果
- 此例演示如何標(biāo)示刪除文本和插入文本。