← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

  1. <title>
  2. Welcome!
  3. Welcome!
  4. <!DOCTYPE html>
  5. in the body
  6. <a>
  7. in the head
  8. in the body
  9. <!DOCTYPE html>
  10. on the browser tab
  11. False
  12. False
  13. in the body
  14. Easy snacks
  15. <table>
  16. Cricket Club
  17. True
  18. <ul>
  19. My Hobbies
  20. My Hobbies
  21. </html>
  22. Art Gallery
  23. False
  24. Easy snacks
  25. False
  26. <html>
  27. <html>
  28. <!DOCTYPE html>
  29. <head>
  30. <h1>
  31. Welcome!
  32. <!DOCTYPE html>
  33. True
  34. False
  35. My Hobbies
  36. the body
  37. in the body
  38. in the head
  39. Cricket Club
  40. Match report

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