← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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