← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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