← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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