← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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