← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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