← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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