← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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