About Lesson
The <p> tag in HTML defines a paragraph. These have both opening and closing tags. 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 a good convention, and we must use the closing tag.
Example:
In this example, we are using the <p> tag that is used for paragraphs:
<p>This paragraph contains a lot of lines in the source code, but the browser ignores it.</p>
Exercise Files
No Attachment Found
Join the conversation