← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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