← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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