← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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