← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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