← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

  1. My Hobbies
  2. <meta charset="utf-8">
  3. <head>
  4. Easy snacks
  5. False
  6. in the body
  7. False
  8. <p>
  9. </html>
  10. <link rel="stylesheet">
  11. in the head
  12. in the head
  13. Easy snacks
  14. False
  15. <!DOCTYPE html>
  16. <head>
  17. <!DOCTYPE html>
  18. <style>
  19. <!DOCTYPE html>
  20. <!DOCTYPE html>
  21. in the body
  22. in the body
  23. True
  24. in the head
  25. </head>
  26. in the body
  27. Easy snacks
  28. <!DOCTYPE html>
  29. in the head
  30. <h1>
  31. Riya’s Recipes
  32. <table>
  33. <title>
  34. on the browser tab
  35. the body
  36. Easy snacks
  37. Easy snacks
  38. <html>
  39. <!DOCTYPE html>
  40. False

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