← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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