← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

  1. My drawings
  2. <!DOCTYPE html>
  3. </html>
  4. on the browser tab
  5. <title>
  6. <!DOCTYPE html>
  7. False
  8. False
  9. <!DOCTYPE html>
  10. All about me
  11. in the head
  12. <img>
  13. My drawings
  14. in the head
  15. in the body
  16. </body>
  17. <head>
  18. in the body
  19. False
  20. Welcome!
  21. <!DOCTYPE html>
  22. Riya’s Recipes
  23. in the body
  24. <h1>
  25. Match report
  26. in the body
  27. My Hobbies
  28. All about me
  29. Easy snacks
  30. True
  31. <link rel="stylesheet">
  32. False
  33. My Hobbies
  34. <!DOCTYPE html>
  35. in the body
  36. <body>
  37. All about me
  38. <!DOCTYPE html>
  39. </head>
  40. in the head

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