← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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