← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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