← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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