← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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