← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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