You have to type a full url to the html file.

This page uses the source code of htmlpreview. You can display even any website using this tool.