Introduction to the <br> tag
The <br> tag in HTML stands for line break. It is used to break the current line and move the text/content to the next line without starting a new paragraph.
Usage of the <br> tag
The <br> tag is a self-closing tag, meaning it does not require a separate closing tag. It is commonly used to separate lines of text, such as in addresses or poems, where line breaks are significant.
Best Practices for using the <br> tag
It is recommended to use the <br> tag for line breaks within the textual content only. For layout and spacing purposes, CSS is the preferred method.
Example code
This is a line of text.
This is a new line of text.