← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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