← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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