← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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