← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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