← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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