title: When opened with google chrome, html code is shown as text
body: <p>The below html code was in a notepad text editor. Saved and then opened the file using google chrome. However it showed the same code only.</p>
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
       &lt;head&gt;
         &lt;title&gt; HTML Cheat sheet&lt;/title&gt;
       &lt;/head&gt;     
  
       &lt;body&gt;
       &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p>Edit:
  I did save as .html
  However when i opened the using chrome it comes as url....html.txt
  I think the .html i saved as was used as filename.html.txt where txt is the only extension. Any idea how to resolve it?</p>