← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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