← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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