← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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