← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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