← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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