← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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