← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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