← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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