← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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