← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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