← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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