← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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