← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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