← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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