← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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