← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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