← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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