← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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