← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

  1. My drawings
  2. the body
  3. My Hobbies
  4. in the head
  5. in the body
  6. <html>
  7. <style>
  8. True
  9. in the head
  10. True
  11. Planets
  12. Riya’s Recipes
  13. in the body
  14. <title>
  15. My drawings
  16. </html>
  17. in the body
  18. <!DOCTYPE html>
  19. <!DOCTYPE html>
  20. <img>
  21. on the browser tab
  22. True
  23. in the body
  24. </head>
  25. <head>
  26. <!DOCTYPE html>
  27. <!DOCTYPE html>
  28. True
  29. False
  30. Planets
  31. <p>
  32. in the head
  33. False
  34. My Hobbies
  35. <html>
  36. </head>
  37. True
  38. in the body
  39. <head>
  40. All about me

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