← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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