← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

  1. True
  2. the body
  3. on the browser tab
  4. <style>
  5. False
  6. Cricket Club
  7. <h1>
  8. in the body
  9. in the body
  10. True
  11. in the body
  12. True
  13. </body>
  14. My Hobbies
  15. in the head
  16. <head>
  17. <html>
  18. <!DOCTYPE html>
  19. <!DOCTYPE html>
  20. Space Facts
  21. Class 7 Blog
  22. True
  23. False
  24. Easy snacks
  25. All about me
  26. in the body
  27. in the body
  28. </html>
  29. in the head
  30. All about me
  31. Space Facts
  32. False
  33. in the head
  34. All about me
  35. </head>
  36. False
  37. False
  38. <img>
  39. My Hobbies
  40. Riya’s Recipes

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