← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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