← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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