← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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