← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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