When company first time offers their shares in the market for general public is called an IPO (Initial Public Offering). To buy it, one needs to have demat account. When you open an account and search for the specific IPO, you would have details on your screen and by few clicks; you can book the allotment by paying mentioned price.