← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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