English

Explain the following tag with a suitable example: <P> - Computer Science 1

Advertisements
Advertisements

Question

Explain the following tag with a suitable example:

<P>

Explain
Advertisements

Solution

It is used to define a paragraph of text in HTML. It always starts on a new line and takes up the full width available. Browsers automatically add a blank line (margin) before and after each <p> element. It is a container tag, meaning it requires both an opening <p> and a closing </p> tag.

For example,

<p>This is the first paragraph.</p>

<p>This is the second paragraph.</p>      

shaalaa.com
  Is there an error in this question or solution?
2025-2026 (March) Official Board Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×