← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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