← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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