← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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