← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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