br

< html‎ | elements
Jump to: navigation, search

br

This page has been flagged with the following issues:


W3C Candidate Recommendation

Summary

The br element (<br>) represents a line break.


Overview Table

DOM Interface [[HTMLBRElement|HTMLBRElement]]

The br element (<br>) forcibly breaks (ends) the current line of text, without starting a new paragraph.

br elements must be used only for line breaks that are actually part of the content, as in poems or addresses, but must not be used for separating thematic groups in a paragraph.

Any content inside br elements must not be considered part of the surrounding text.

Examples

View live exampleThe following example is correct usage of the br element

HTML


<p>P. Sherman<br> 42 Wallaby Way<br> Sydney</p>

Notes

No closing tag is needed.


Related specifications

Specification Status Related Changes
HTML5 W3C Candidate Recommendation
HTML 4.01 Specification Recommendation

Compatibility

Desktop

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support ? ? ? ? ?

Mobile

Feature Android BlackBerry Chrome for mobile Firefox Mobile (Gecko) IE Mobile Opera Mobile Opera Mini Safari Mobile
Basic support ? ? ? ? ? ? ? ?

See also

Related articles

HTML





























  • br






















… further results

Text


















































… further results