← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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