← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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