← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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