← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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