HTML Tags – Break Tag


What is HTML <br/> tag ?

HTML <br/> tag self-closing tag inserts a single line break.

HTML <br/> tag breaks the current line than after next text display on next line.

Since its a self-closing tag it does not contain end tag.

How HTML <br/> tag is used ?


Whenever the line break is required inside the webpage <br/> tag is used.

HTML <br> tag is useful for writing addresses or poems.

Syntax :

<p> some content <br /> some more content</p>

Example :

<html>
<head>
    <title>Webpage Title</title>
</head>
<body>
    <!--Contents of the webpage-->
    <p>
    This is a full paragraph with single line break tag<br />
    This is a full paragraph with single line break tag<br />
    This is a full paragraph with single line break tag<br />
    This is a full paragraph with single line break tag<br />
    This is a full paragraph with single line break tag<br />
    </p>
</body>
</html>

Output :

HTML beginners tutorial !!!

Click to Learn More about – HTML Tutorial for beginners

<br /> Tag Attributes

HTML <br /> tag does not support any specific attributes.

Global Attributes

HTML <br /> tag support following global attributes.

SnoAttributesValueDescription
1idunique_nameDeclared unique id for an element.
2classclass_nameDeclared one or more classnames for an element.
3stylestylesCSS inline styles specify an element.
4titletitleSpecify extra details of element contain, this will display as a “tooltip” for an elements.

Event Attributes

HTML <br /> tag does not support any event attributes.

Browser Compatibility

SnoBrowserSupport
1ChromeYes
2FirefoxYes
3EdgeYes
4OperaYes
5SafariYes
6Internet ExplorerYes