← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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