← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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