← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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