← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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