← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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