← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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