← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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