← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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