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.
Sno | Attributes | Value | Description |
---|---|---|---|
1 | id | unique_name | Declared unique id for an element. |
2 | class | class_name | Declared one or more classnames for an element. |
3 | style | styles | CSS inline styles specify an element. |
4 | title | title | Specify 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
Sno | Browser | Support |
1 | Chrome | Yes |
2 | Firefox | Yes |
3 | Edge | Yes |
4 | Opera | Yes |
5 | Safari | Yes |
6 | Internet Explorer | Yes |