← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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