← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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