← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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