← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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