← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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