← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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