← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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