← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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