← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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