← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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