Integration with HTML

(deleted)

That's all possible if you write a web server to run on the Arduino and then write the back-end logic to provide the input states and run the 'programs' on command. Or you could use something like Firmata to provide remote access to the basic I/O capabilities and put your application logic elsewhere.