← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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