← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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