← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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