← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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