← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

  1. <meta charset="utf-8">
  2. on the browser tab
  3. False
  4. <!DOCTYPE html>
  5. False
  6. in the head
  7. False
  8. the body
  9. </html>
  10. True
  11. in the body
  12. </head>
  13. <html>
  14. True
  15. False
  16. <style>
  17. <!DOCTYPE html>
  18. in the body
  19. <a>
  20. <head>
  21. <link rel="stylesheet">
  22. My Hobbies
  23. My Hobbies
  24. in the body
  25. <!DOCTYPE html>
  26. Planets
  27. Space Facts
  28. Space Facts
  29. Cricket Club
  30. True
  31. My Hobbies
  32. <h1>
  33. in the body
  34. All about me
  35. <head>
  36. My drawings
  37. <p>
  38. in the body
  39. My Hobbies
  40. in the head

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