← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

  1. <head>
  2. in the body
  3. <ul>
  4. <img>
  5. True
  6. in the head
  7. <head>
  8. Match report
  9. True
  10. in the body
  11. </body>
  12. <!DOCTYPE html>
  13. False
  14. Space Facts
  15. True
  16. Riya’s Recipes
  17. <!DOCTYPE html>
  18. <h1>
  19. in the head
  20. </html>
  21. in the body
  22. False
  23. <body>
  24. in the body
  25. Art Gallery
  26. in the body
  27. the body
  28. <!DOCTYPE html>
  29. on the browser tab
  30. False
  31. in the body
  32. Space Facts
  33. Art Gallery
  34. <meta charset="utf-8">
  35. False
  36. Welcome!
  37. <title>
  38. False
  39. Class 7 Blog
  40. True

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