mozilla
Your Search Results

    <br> Redirect 1

    There was a scripting error on this page. While it is being addressed by site editors, you can view partial content below.

    Summary

    The HTML <br> Element (or HTML Line Break Element) produces a line break in text (carriage-return). It is useful for writing a poem or an address, where the division of lines is significant.

    Do not use <br> to increase the gap between lines of text; use the CSS margin property or the <p> element.

    Attributes

    This element includes the global attributes.

    clear Deprecated since HTML4.01 Obsolete since HTML5
    Indicates where to begin the next line after the break.

    Usage note: This attribute is obsolete in HTML5 and should not be used by authors. Use the CSS clear property instead.

    Example

    Mozilla Foundation<br>
    1981 Landings Drive<br>
    Building K<br>
    Mountain View, CA 94043-0801<br>
    USA
    

    The HTML above outputs:

    Mozilla Foundation
    1981 Landings Drive
    Building K
    Mountain View, CA 94043-0801
    USA

    Specifications

    Specification Status Comment
    WHATWG HTML Living Standard Living Standard  
    HTML5 Candidate Recommendation  
    HTML 4.01 Specification Recommendation  

    Browser compatibility

    Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
    Basic support 1.0 (Yes) (Yes) (Yes) (Yes)
    Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
    Basic support (Yes) (Yes) (Yes) (Yes) (Yes)

    See also

    {{ HTMLRef }}

    Document Tags and Contributors

    Contributors to this page: Sheppy
    Last updated by: Sheppy,