forget HTML.If you want it on a Website you can use ASP.NET, or Javascript which might be easier to integrate into a website.

Take a look at. http://www.dannyg.com/examples/res2/resistor.htm