← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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