← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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