← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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