HTML BR Tag is used to insert a single line break.
HTML BR Tag is an empty tag which means that we don’t need to close the br tag in HTML 5, but in XHTML, we have to close the br tag by using <br /> tag.
The BR Tag can be very useful to put line breaks in any HTML resource or webpage.
We should not use the BR Tag to separate paragraphs in any HTML resource or webpage, instead we should use the HTML p tag.
Syntax of HTML Br Tag
Some text here <br> Some text there
Example of HTML Br Tag
|HTML Br Tag Code||Output|
Tech Honey is <br> a good website.
|Tech Honey is
a good website.
Here in the above HTML Br tag example we can see that the text after the <br> tag is displayed in a new line in the code output. Hence a line break has been generated in the text as soon as the HTML br tag is encountered by the browser.
HMTL Br Tag supports all HTML Global Attributes and HTML Event Attributes.
HTML Br Tag Supporting Browsers