← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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