← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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