← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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