← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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