← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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