Before HTML code run html file save with .html extension name. than run the html file , let's say on a notepad application then you'll choose save as after getting to the save tab, in the name box, let's say you are naming your save file as index, you'll append the HTML extension.