← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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