← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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