← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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