← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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