HTML Paragraph
What is <p> tag :
- The <p> tag in HTML defines a paragraph.
- These have both opening and closing tag. So anything mentioned within <p> and </p> is treated as a paragraph.
- Most browsers read a line as a paragraph even if we don’t use the closing tag i.e, </p>, but this may raise unexpected results. So, it is both a good convention and we must use the closing tag.
Example:
Output:
What is <br> tag
There is a way to let the HTML know where does the browser need to change the lines by the use of <br> tag.
These tags do not have any closing tag. So, just a single opening tag will change the line.