← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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