HTML br Tag breaks the normal flow of content by inserting a single line break.
Table of Contents
Syntax of HTML br Tag
The Syntax of HTML br Tag is shown below. It is an empty element with no ending tag.
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<br>
</body>
</html>
Usage of HTML br Tag
The br tag or line break tag is used for writing poems, lyrics and addresses as it can insert a line break after one verse or line. However usage of CSS is more preferable instead of br tag as it has no limitations.
Example of HTML br Tag
Simple example of HTML br tag is shown below.
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<p>This line will <br> break it's flow due to br tag.</p>
</body>
</html>
Output
This line will
break it's flow due to br tag.
Browser Support for HTML br Tag
HTML br Tag is supported by all major browsers.
Global Attributes Support in HTML br Tag
The HTML br Tag supports Global Attributes.
Event Attributes Support in HTML br Tag
The HTML br Tag supports Event Attributes.
HTML br Tag Video
Watch our video on HTML br Tag and subscribe our Youtube Channel.