← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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