← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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