← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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