← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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