← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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