← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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