← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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