← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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