← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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