← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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