← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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