← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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