← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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