← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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