← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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