How to book the whole train, Indian Railways coaches from IRCTC

Booking the trains and coaches online can be made by just visiting the major of train and railway station all over the country.