← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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