← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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