← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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