← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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