← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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