HTML <br>
tag
The <br>
tag in HTML is used to insert a line break within a text content. It is a self-closing tag, meaning it does not have a closing tag.
Example:
This is some text using the
tag to create a line break.
Attributes of the <br>
tag:
Attribute | Description |
---|---|
clear |
Specifies which sides of floating elements that the line break should be cleared on. |
Example:
This is some text using the
tag with the clear attribute.