← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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