← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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