← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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