← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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