br Tag
- Purpose: The
<br>
tag is a line break tag, and it is used to create a line break within the text. - Usage: It is a self-closing tag and does not have a closing tag. It is commonly used when you want to add a simple line break, such as in addresses or poems.
Syntax:
This is the first line. <br>
This is the second line.
What is the difference between the Tag and the Tag ?
The <br> tag is used to insert a line break, creating a new line within text or content. It doesn’t have a closing tag and is a self-closing tag. On the other hand, the <p> tag defines a paragraph, separating blocks of text. It has an opening <p> and a closing </p> tag, allowing for the structured organization of text into paragraphs.