← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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