title: How to use the images taken from user using input tag HTML?
body: <p>I have used <code>&lt;input type='file'&gt;</code> in which the user will place any image. Then i want to use that image as the background of the page. Is it possible to do that using just HTML , CSS , JAVASCRIPT ?
  Basically my idea is to create a black and white image converter, i will take the picture from user input and then i will use <code>filter: grayscale()</code> property to convert that to black and white. Please help me.. My code is as following-</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>*{
    margin: 0;
    padding: 0;
  }
  /*Code for the image entered by user --
  .image{
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 400px;
    height: 400px;
    background: url(); (set the image taken from user input)
    filter: grayscale(100%);
  }
  */</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
    &lt;meta charset="UTF-8"&gt;
    &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
    &lt;link rel="stylesheet" href="style.css"&gt;
    &lt;title&gt;Document&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;h1&gt;Black and White Image Converter&lt;/h1&gt;
    &lt;label for="user-input"&gt;Attach the the image you want to convert : &lt;/label&gt;
    &lt;input type="file" name="user-input" id="user-input" placeholder="Attach any image.."&gt;&lt;!--Use this image--&gt;
    &lt;div class="image"&gt;&lt;!--I want to display that image as background of this div--&gt;
  &lt;/body&gt;
  &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>Any help is appreciated..</p>