← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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