← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

  1. <!DOCTYPE html>
  2. </html>
  3. <html>
  4. False
  5. in the body
  6. in the body
  7. on the browser tab
  8. False
  9. Welcome!
  10. <style>
  11. <html>
  12. Easy snacks
  13. All about me
  14. True
  15. Easy snacks
  16. <p>
  17. <!DOCTYPE html>
  18. the body
  19. <html>
  20. <title>
  21. True
  22. in the body
  23. Art Gallery
  24. Welcome!
  25. <h1>
  26. in the body
  27. <!DOCTYPE html>
  28. <!DOCTYPE html>
  29. True
  30. <a>
  31. Cricket Club
  32. in the head
  33. <head>
  34. </head>
  35. True
  36. <html>
  37. Planets
  38. False
  39. in the head
  40. in the body

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