← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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