← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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