← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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