← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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