← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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