← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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