This is sooo funny

You had a index.html already in the folder then you write over it when you save your second file.

Do it again, but re-name the first index.html before saving anything else into the folder that will have a index.html.

The easy way is to keep them in different folders, and call the one you require. Saves having to rename anything.

Moredun