← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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