Class 10 HTML Worksheet: The

(Paragraph) Tag

 Here’s a worksheet focused on the <p> (paragraph) tag for Class 10 students. This will help them understand how to use the paragraph tag in HTML.




Class 10 HTML Worksheet: The <p> (Paragraph) Tag

Part A: Fill in the Blanks

  1. The <p> tag is used to create a __________ in an HTML document.
  2. The content within the <p> tag is displayed as a block of __________.
  3. By default, the browser adds extra __________ above and below a paragraph to separate it from other content.
  4. The closing tag for a paragraph is __________.
  5. To align the text inside a paragraph, you can use the __________ attribute.

Part B: True or False

  1. The <p> tag can be used without a closing </p> tag in modern HTML. (True / False)
  2. The <p> tag is an inline element. (True / False)
  3. You can nest one <p> tag inside another <p> tag. (True / False)
  4. The <p> tag automatically adds line breaks before and after the text it contains. (True / False)
  5. The <p> tag is used to add images to a web page. (True / False)

Part C: Short Answer Questions

  1. What is the purpose of the <p> tag in an HTML document?
  2. Write the HTML code to create three separate paragraphs with the text "Hello World," "Welcome to HTML," and "This is a paragraph."
  3. What is the difference between using multiple <p> tags and using the <br> tag for line breaks?
  4. How can you align a paragraph's text to the center using the <p> tag?
  5. Write the HTML code to create a paragraph with red-colored text.

Part D: Practical Exercises

  1. Create an HTML document with the following content:

    • A heading that says "My Favorite Hobbies"
    • Three paragraphs describing your hobbies
    • Ensure each hobby is in a separate paragraph using the <p> tag.
  2. Write the HTML code to create a webpage with two paragraphs. The first paragraph should have the text aligned to the left and the second paragraph should have the text aligned to the right.

  3. Create an HTML page with three paragraphs:

    • The first paragraph with a background color of light grey.
    • The second paragraph with blue text.
    • The third paragraph with bold and italic text.

Part E: Code Correction

Examine the following HTML code and correct any mistakes related to the <p> tag. Rewrite the correct code.


<!DOCTYPE html> <html> <head> <title>Paragraph Example</title> </head> <body> <p>Welcome to my website! <p>This is a sample paragraph <p>Thank you for visiting!</p> </body> </html>

Post a Comment

0 Comments