← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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