← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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