← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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