← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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