How does YouTube work?

Sahil May 23, 2011
Pinterest Stumbleupon Whatsapp

Does YouTube work on HTML5 ?
If yes, then why does sometimes ask for Flash player ?
And if it does work on Flash, why is it working with this ancient technology ?