Database connection from front end @MayankSharma - that's the client side. In my experience, front end generally refers to the logic that actually renders the HTML where as the back end is the "brains" of the site. The typical pattern is for a front end to request data from the back end via calls that can be swapped out to make it run off of any DB platform. So DB + DB layer is backend, HTML generation is front end and business logic can live in either, depending on approach.