← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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