HTML 5 <br> 标签

定义和用法

<br> 标签插入简单的换行符。

<br> 标签是一个空标签,意味着它没有结束标签。所以这样是错误的:<br></br>

HTML 4.01 与 HTML 5 之间的差异

NONE(没有差异)

示例

This text contains<br />a line break

输出:

This text contains
a line break

标准属性

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

事件属性

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