← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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