How to open demat account online

How can I open a demat account online without visiting a branch?