title: When to use query parameters versus matrix parameters?
body: <p><strong>Query parameters</strong>: <code>http://example.com/apples?order=random&amp;color=blue</code></p>
  
  <p><strong>Matrix parameters</strong>: <code>http://example.com/apples;order=random;color=blue</code></p>
  
  <ol>
  <li>When should one use query parameters versus matrix parameters?</li>
  <li>Why can matrix parameters be used in the middle of a URL but query parameters cannot? For example: <code>http://example.com/apples;order=random;color=blue/2006/archive</code></li>
  <li>If matrix parameters are a superset of query parameters, why not use them all the time?</li>
  </ol>
  
  <p>You can read more about matrix parameters here: <a href="http://www.w3.org/DesignIssues/MatrixURIs.html" rel="noreferrer">http://www.w3.org/DesignIssues/MatrixURIs.html</a></p>