← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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