title: Why doesn't Chrome or Firefox add Doctype to txt file when being opened
body: <p>If you save a txt file and open it w/ chrome or firefox, I noticed that the the doctype declaration isn't added when I inspect the element in question. Instead it's just 'html.'</p>
  
  <p>Is there any reason for this? Because it does make a difference to the 'pre' format's style and layout when you do add doctype html.</p>
  
  <p>Edit: OK, when a browser opens up a txt (whether locally or thorugh HTTP) it does not open a txt file, but converts it to raw html. And Matt Ball is wrong - because the browser is not opening a txt file - it's converting a txt file to html. Example: gutenberg.org/cache/epub/4300/pg4300.txt Now inspect it's element - you'll notice it's not display the actual txt file but an html document </p>