← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

  1. </html>
  2. Cricket Club
  3. in the head
  4. False
  5. <link rel="stylesheet">
  6. True
  7. <!DOCTYPE html>
  8. <!DOCTYPE html>
  9. <html>
  10. <title>
  11. All about me
  12. </head>
  13. the body
  14. False
  15. in the body
  16. Space Facts
  17. in the head
  18. True
  19. Class 7 Blog
  20. My Hobbies
  21. False
  22. in the body
  23. <head>
  24. <!DOCTYPE html>
  25. <p>
  26. All about me
  27. in the body
  28. My drawings
  29. Welcome!
  30. in the body
  31. True
  32. <style>
  33. All about me
  34. <!DOCTYPE html>
  35. My Hobbies
  36. on the browser tab
  37. Easy snacks
  38. False
  39. Match report
  40. <a>

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