← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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