← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

  1. <!DOCTYPE html>
  2. in the head
  3. True
  4. True
  5. <link rel="stylesheet">
  6. Art Gallery
  7. in the body
  8. on the browser tab
  9. <a>
  10. <p>
  11. in the head
  12. <!DOCTYPE html>
  13. Cricket Club
  14. <body>
  15. in the head
  16. <!DOCTYPE html>
  17. <html>
  18. <h1>
  19. in the body
  20. in the head
  21. True
  22. Space Facts
  23. <head>
  24. Match report
  25. Cricket Club
  26. </html>
  27. in the body
  28. </body>
  29. My Hobbies
  30. False
  31. <!DOCTYPE html>
  32. <html>
  33. False
  34. All about me
  35. My drawings
  36. Class 7 Blog
  37. False
  38. My Hobbies
  39. in the body
  40. <table>

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