← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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