← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

  1. <table>
  2. </html>
  3. Match report
  4. Planets
  5. True
  6. <html>
  7. the body
  8. in the head
  9. <!DOCTYPE html>
  10. on the browser tab
  11. in the body
  12. in the body
  13. <title>
  14. in the body
  15. False
  16. <!DOCTYPE html>
  17. False
  18. <!DOCTYPE html>
  19. True
  20. All about me
  21. <head>
  22. <!DOCTYPE html>
  23. True
  24. False
  25. Class 7 Blog
  26. My Hobbies
  27. My Hobbies
  28. in the head
  29. in the body
  30. Class 7 Blog
  31. </head>
  32. <html>
  33. in the body
  34. in the head
  35. False
  36. True
  37. False
  38. Riya’s Recipes
  39. in the body
  40. Match report

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