← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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