← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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