← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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