← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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