← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

HTML and CSS lesson 8: Page structure: head and body · Set 911 · 40 questions
TalentJR

Code tip (Head for the browser, body for you): <!DOCTYPE html> first, then <html> with <head> and <body> inside. The head holds <title> (shown on the browser tab), <meta>, <style> and <link>. The body holds everything you see on the page.

NameDateTime takenScore ___ / 40
  1. 1.Which of these goes in the head? (a) <a> (b) <title> (c) <p> (d) <table>
  2. 2.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Cricket Club</title>
    </head>
    <body>
      <h1>Welcome!</h1>
      <p>Try this poha.</p>
    </body>
    </html>
    (a) Cricket Club (b) Welcome! (c) index.html (d) Try this poha.
  3. 3.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Art Gallery</title>
    </head>
    <body>
      <h1>All about me</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) Art Gallery (b) All about me (c) index.html (d) I like to read.
  4. 4.🔢 In a basic web page file, which comes FIRST? (a) </head> (b) <!DOCTYPE html> (c) <head> (d) <body>
  5. 5.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Class 7 Blog</title>
    </head>
    <body>
      <h1>All about me</h1>
      <p>Mars is red.</p>
    </body>
    </html>
    (a) All about me (b) Mars is red. (c) Class 7 Blog (d) index.html
  6. 6.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Riya’s Recipes</title>
    </head>
    <body>
      <h1>All about me</h1>
      <p>Mars is red.</p>
    </body>
    </html>
    (a) index.html (b) Mars is red. (c) All about me (d) Riya’s Recipes
  7. 7.📄 Where does <p> go: in the head or in the body? (a) in the head (b) in the body
  8. 8.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>My Hobbies</title>
    </head>
    <body>
      <h1>Easy snacks</h1>
      <p>We won by 5 runs.</p>
    </body>
    </html>
    (a) My Hobbies (b) Easy snacks (c) We won by 5 runs. (d) body
  9. 9.🔢 In a basic web page file, which comes first: “<head>” or “</head>”? (a) </head> (b) <head>
  10. 10.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Cricket Club</title>
    </head>
    <body>
      <h1>All about me</h1>
      <p>Try this poha.</p>
    </body>
    </html>
    (a) Try this poha. (b) body (c) Cricket Club (d) All about me
  11. 11.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Cricket Club</title>
    </head>
    <body>
      <h1>Welcome!</h1>
      <p>Mars is red.</p>
    </body>
    </html>
    (a) Cricket Club (b) Mars is red. (c) Welcome! (d) body
  12. 12.📄 Where does <meta charset="utf-8"> go: in the head or in the body? (a) in the body (b) in the head
  13. 13.📄 What is the first line of an HTML5 page? (a) <head> (b) <!DOCTYPE html> (c) <html> (d) <body>
  14. 14.📄 Where does <table> go: in the head or in the body? (a) in the head (b) in the body
  15. 15.📄 Where does <link rel="stylesheet"> go: in the head or in the body? (a) in the head (b) in the body
  16. 16.True or false: <title> goes in the body. (a) True (b) False
  17. 17.Which of these goes in the body? (a) <title> (b) <style> (c) <meta charset="utf-8"> (d) <table>
  18. 18.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Art Gallery</title>
    </head>
    <body>
      <h1>My drawings</h1>
      <p>Here is my best one.</p>
    </body>
    </html>
    (a) Here is my best one. (b) My drawings (c) index.html (d) Art Gallery
  19. 19.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Cricket Club</title>
    </head>
    <body>
      <h1>All about me</h1>
      <p>We won by 5 runs.</p>
    </body>
    </html>
    (a) index.html (b) All about me (c) Cricket Club (d) We won by 5 runs.
  20. 20.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Class 7 Blog</title>
    </head>
    <body>
      <h1>Planets</h1>
      <p>Thanks for visiting.</p>
    </body>
    </html>
    (a) index.html (b) Thanks for visiting. (c) Class 7 Blog (d) Planets
  21. 21.True or false: <a> goes in the body. (a) False (b) True
  22. 22.📄 Where does <title> go: in the head or in the body? (a) in the head (b) in the body
  23. 23.True or false: <table> goes in the head. (a) False (b) True
  24. 24.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Riya’s Recipes</title>
    </head>
    <body>
      <h1>My drawings</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) Riya’s Recipes (b) My drawings (c) I like to read. (d) body
  25. 25.Which of these goes in the body? (a) <meta charset="utf-8"> (b) <h1> (c) <link rel="stylesheet"> (d) <title>
  26. 26.📄 Which part holds everything you see on the page? (a) the body (b) the doctype (c) the title (d) the head
  27. 27.True or false: <link rel="stylesheet"> goes in the body. (a) True (b) False
  28. 28.🔢 In a basic web page file, which comes first: “<html>” or “</head>”? (a) <html> (b) </head>
  29. 29.Which of these goes in the body? (a) <style> (b) <link rel="stylesheet"> (c) <img> (d) <title>
  30. 30.📄 Where does <style> go: in the head or in the body? (a) in the body (b) in the head
  31. 31.🔢 In a basic web page file, which comes first: “</html>” or “<!DOCTYPE html>”? (a) <!DOCTYPE html> (b) </html>
  32. 32.📄 Where does <img> go: in the head or in the body? (a) in the body (b) in the head
  33. 33.True or false: <table> goes in the body. (a) True (b) False
  34. 34.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Riya’s Recipes</title>
    </head>
    <body>
      <h1>All about me</h1>
      <p>Here is my best one.</p>
    </body>
    </html>
    (a) index.html (b) Riya’s Recipes (c) All about me (d) Here is my best one.
  35. 35.🔢 In a basic web page file, which comes first: “<!DOCTYPE html>” or “</head>”? (a) </head> (b) <!DOCTYPE html>
  36. 36.True or false: <h1> goes in the body. (a) False (b) True
  37. 37.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>My Hobbies</title>
    </head>
    <body>
      <h1>Easy snacks</h1>
      <p>We won by 5 runs.</p>
    </body>
    </html>
    (a) index.html (b) My Hobbies (c) Easy snacks (d) We won by 5 runs.
  38. 38.📄 What does the browser tab show for this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Riya’s Recipes</title>
    </head>
    <body>
      <h1>Welcome!</h1>
      <p>I like to read.</p>
    </body>
    </html>
    (a) Welcome! (b) I like to read. (c) index.html (d) Riya’s Recipes
  39. 39.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Cricket Club</title>
    </head>
    <body>
      <h1>All about me</h1>
      <p>Mars is red.</p>
    </body>
    </html>
    (a) All about me (b) Mars is red. (c) body (d) Cricket Club
  40. 40.📄 What is the big heading shown on this page?
    <!DOCTYPE html>
    <html>
    <head>
      <title>Space Facts</title>
    </head>
    <body>
      <h1>Planets</h1>
      <p>Try this poha.</p>
    </body>
    </html>
    (a) Space Facts (b) Planets (c) Try this poha. (d) body

Answer key

  1. <title>
  2. Cricket Club
  3. Art Gallery
  4. <!DOCTYPE html>
  5. Class 7 Blog
  6. Riya’s Recipes
  7. in the body
  8. Easy snacks
  9. <head>
  10. All about me
  11. Welcome!
  12. in the head
  13. <!DOCTYPE html>
  14. in the body
  15. in the head
  16. False
  17. <table>
  18. Art Gallery
  19. Cricket Club
  20. Class 7 Blog
  21. True
  22. in the head
  23. False
  24. My drawings
  25. <h1>
  26. the body
  27. False
  28. <html>
  29. <img>
  30. in the head
  31. <!DOCTYPE html>
  32. in the body
  33. True
  34. Riya’s Recipes
  35. <!DOCTYPE html>
  36. True
  37. My Hobbies
  38. Riya’s Recipes
  39. All about me
  40. Planets

Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids