← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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