← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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