← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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