← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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