← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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