← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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