← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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