← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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