← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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