← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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