← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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