The ability to host HTML files and Gadgets in Google drive has been discontinued.

In some cases it is possible to create gadgets instead of HTML files for your code.

This site demonstrates how to create a gadget, host it in a file cabinet page and insert it into a page.