HTML and CSS Reference
In-Depth Information
Name
br
Synopsis
<br>
(XHTML:
<br/>
or
<br />
)
Represents a line break in the content, such as in a poem or postal address.
Usage
Categories:
Flow content, phrasing content
Permitted contexts:
Where phrasing content is expected
Permitted content:
Empty
Start/end tags:
This is an empty (void) element, meaning it has only a start tag and may not have any con-
tents. In HTML, the end tag is forbidden. In XHTML, the element must be closed with a
trailing slash (
<br/>
or
<br />
).
Attributes
HTML5 Global Attributes
Example (HTML)
<p>O'Reilly Media
<br>
1005 Gravenstein Highway North
<br>
Sebastopol, CA 95472</p>