A file in HTML is first of all, a file saved with a recognizable extension. The most common extension is htm as the traditional format of Microsoft Windows files. The other extension that is valid is html. Any one of these two extensions makes it a valid HTML file. HTML works by delivering two types of items to the browser: The items to display and the instructions on how to display those items. Everything in HTML is given to the browser as text.