How to open demat account for share market

What are the steps to open a demat account specifically for stock market investments?