← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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