← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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