← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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