← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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