瀏覽器支持
所有主流瀏覽器都支持 <sub> 標簽。
定義和用法
<sub> 標簽可定義下標文本。<sup> 可定義上標文本。
HTML 4.01 與 HTML 5 之間的差異
沒有。
例子
這段文本包含<sub>下標</sub>
這段文本包含<sup>上標</sup>
屬性
標準屬性
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 中事件屬性。、
<sub>和<sup>標簽在向文檔添加腳注以及表示方程式中的指數(shù)值時非常有用!
更多建議: