← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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