← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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