← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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