← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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