← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

  1. <!DOCTYPE html>
  2. in the head
  3. Riya’s Recipes
  4. in the body
  5. <!DOCTYPE html>
  6. Riya’s Recipes
  7. False
  8. Easy snacks
  9. <!DOCTYPE html>
  10. the body
  11. Riya’s Recipes
  12. My drawings
  13. False
  14. </html>
  15. in the body
  16. <style>
  17. My drawings
  18. My drawings
  19. in the head
  20. Space Facts
  21. True
  22. in the body
  23. <link rel="stylesheet">
  24. Match report
  25. True
  26. <body>
  27. False
  28. <meta charset="utf-8">
  29. in the head
  30. True
  31. <a>
  32. <head>
  33. <!DOCTYPE html>
  34. False
  35. in the head
  36. <!DOCTYPE html>
  37. False
  38. Welcome!
  39. Art Gallery
  40. <img>

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