← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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