← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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