← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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