HTM-01400 | What are the , and tags?
What is the <p> Paragraph Tag?
The HTML <p>
element represents a paragraph of text. Paragraphs are usually represented in visual media as blocks of text that are separated from adjacent blocks by vertical blank space and/or first-line indentation. Paragraphs are block-level elements.
Click here to view the <p>
element example.
What is the <br /> line break tag?
- Whenever you use the
<br />
element, anything following it starts from the next line. - This tag is an example of an empty element, where you do not need opening and closing tags, as there is nothing to go in between them.
- The
<br />
tag has a space between the characters br and the forward slash. If you omit this space, older browsers will have trouble rendering the line break, while if you miss the forward slash character and just use<br>
it is not valid in XHTML
Click here to view the <br />
element example.
What is the <hr> tag?
The HTML <hr>
element represents a thematic break between paragraph-level elements (for example, a change of scene in a story, or a shift of topic with a section). In previous versions of HTML, it represented a horizontal rule. It may still be displayed as a horizontal rule in visual browsers, but is now defined in semantic terms, rather than in presentation.