← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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