← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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