HTML 5 <p> 標(biāo)簽
定義和用法
<p> 標(biāo)簽定義段落。
HTML 4.01 與 HTML 5 之間的差異
在 HTML 4.01 中,不贊成使用 align 屬性,在 HTML 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í)例
- 簡(jiǎn)單的段落
- 此例演示:段落元素中的文字如何被瀏覽器顯示。
- 更多的段落
- 本例演示段落元素的某些缺省的行為。
- “詩(shī)歌”問(wèn)題
- 本例演示 HTML 格式化的某些問(wèn)題。