title: Select item from unordered list in html
body: <p>I have a list of items vertically. I want to select item from the list. Also, selected item will get green or any color. At a time, only one item can be selected from list. I can create the list. But, no idea how to make it selective and change color after selection by clicking mouse. Do I need to use any CSS for that?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="items"&gt;
    &lt;ul&gt;
      &lt;li&gt;Item1&lt;/li&gt;
      &lt;li&gt;Item2&lt;/li&gt;
      &lt;li&gt;Item3&lt;/li&gt;
    &lt;ul&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>