← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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