← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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