← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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