← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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