← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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