← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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