← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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