← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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