← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

  1. True
  2. <html>
  3. My Hobbies
  4. </head>
  5. Class 7 Blog
  6. Match report
  7. in the body
  8. Easy snacks
  9. in the head
  10. <!DOCTYPE html>
  11. Planets
  12. Space Facts
  13. in the head
  14. <a>
  15. True
  16. <!DOCTYPE html>
  17. Class 7 Blog
  18. True
  19. Cricket Club
  20. in the body
  21. <html>
  22. <h1>
  23. in the head
  24. <title>
  25. <!DOCTYPE html>
  26. True
  27. Match report
  28. False
  29. False
  30. True
  31. <head>
  32. <link rel="stylesheet">
  33. in the body
  34. Space Facts
  35. False
  36. the body
  37. </html>
  38. False
  39. Match report
  40. <p>

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