← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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