← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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