← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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