← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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