← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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