← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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