← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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