← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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