← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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