← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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