← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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