← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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