Well, explaining your problem is maybe a better way to start than to type something random, don't you think?
The code you say you have written, is that HTML? And do you want to save the document as something.html?
1. Write something.html in the first field labeled "File name".
2. Use the dropdown list to change the second field (labeled "Save as type") from "Text documents" to "All files".
Click to view attachment