← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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