← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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