Class 10 HTML Worksheet: The Heading Tags (h1 to h6)

Class 10 HTML Worksheet: The Heading Tags (<h1> to <h6>)



Part A: Fill in the Blanks

  1. The <h1> tag is used to create the __________ heading, while the <h6> tag creates the __________ heading.
  2. There are __________ levels of headings in HTML, ranging from <h1> to <h6>.
  3. The <h1> tag is generally used for the __________ heading on a page.
  4. Headings are displayed in __________ order, with <h1> being the largest and <h6> being the smallest.
  5. The heading tags help structure content on a webpage and improve __________ for search engines.

Part B: True or False

  1. The <h1> tag is the smallest heading tag. (True / False)
  2. You can use multiple <h1> tags on a single webpage. (True / False)
  3. The <h6> tag is smaller than the <h2> tag. (True / False)
  4. Heading tags are block-level elements. (True / False)
  5. Headings can contain other HTML tags like <strong> or <em>. (True / False)

Part C: Short Answer Questions

  1. What is the purpose of heading tags in HTML?
  2. Write the HTML code to create a webpage with a main heading "My Blog" and two subheadings "Introduction" and "Conclusion."
  3. Explain how the different levels of heading tags (<h1> to <h6>) are typically used on a webpage.
  4. What is the difference between a paragraph (<p>) tag and a heading (<h1> to <h6>) tag?
  5. How do search engines like Google use heading tags when indexing webpages?

Part D: Practical Exercises

  1. Create an HTML document with the following headings:

    • A main heading "Welcome to My Website" using the <h1> tag.
    • A subheading "About Me" using the <h2> tag.
    • A smaller subheading "My Hobbies" using the <h3> tag.
    • Another subheading "Contact Information" using the <h4> tag.
  2. Write the HTML code for a webpage that uses all six heading tags (<h1> to <h6>) to display a title hierarchy for the following:

    • Main Title: "Technology Trends"
    • Subtopics: "Artificial Intelligence," "Blockchain," and "Cybersecurity"
    • Sub-subtopics under each subtopic (e.g., "AI in Healthcare," "AI in Finance," etc.)
  3. Create an HTML page where the main title is "My Favorite Movies," followed by three movie genres as subheadings, and under each genre, list one example movie.

Part E: Code Correction

Examine the following HTML code and correct the mistakes related to the heading tags. Rewrite the correct code.

<!DOCTYPE html> <html> <head> <title>Heading Example</title> </head> <body> <h1>My Webpage<h1> <h2>Introduction<h2> <h3>Details</h> <h4>Conclusion</h4> </body> </html>

Post a Comment

0 Comments