← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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