← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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