Inserts a line break. | HTML 2, 3.2, 4, 4.01, 5 |
HTML Syntax
<br
class = classname
id = value
style = css_style_rules
>
NOTE: Only the <br
> start tag must be present. The element has no end tag.
The <br
> element specifies a break in a line of text, but does not add extra space before the new line.
The element has a single, well-defined purpose, and as such, it has no dimensions or visual output of its own, and there is very little authors can do to style it.
To increase the spacing between the lines of text in the block, authors can use the CSS line-height property that was designed for that purpose.
The <br>
element has no attribute of its own, but supports global attributes common to all HTML elements.
The following example shows how the <br
> element may be used.
<blockquote>Abakada Web Workshop<br>
360 F. Ortigas St., New Zaniga<br>
Mandaluyong City, Philippines 1550<br>
Phone ( 632 ) 531-9061</blockquote>
which would render on a Web page as
Abakada Web Workshop
360 F. Ortigas St., New Zaniga
Mandaluyong City, Philippines 1550
Phone ( 632 ) 531-9061
NOBR WBR