title: Add "x" clear/dismiss button inside a input of type text with css and not a gif
body: <p>I have a input of type text in html5 with has the "Email" as placeholder. I would like to add "x" to dismiss the input upon click on that and I tried different solution but none would look like the same (I dont want to change the type of the input to search), here is what I have for the input:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.email-input {
    display: inline-block;
    height: 40px;
    width: 400px;
    font-size: 15px;
    color: #666666;
    text-indent: 8px;
    border: 0px;
    margin: 26px 0px 16px 0px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;input id="try-different-email" type="text" name="email" placeholder="Email" class="email-input" /&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>This is how I would like the "x" dismiss button looks like, Can anybody help me with it please (especially the css part)?
  <a href="https://i.stack.imgur.com/no73u.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/no73u.jpg" alt="enter image description here"></a></p>