← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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