← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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