What is bid and offer price in share market

How do bid and offer prices work in the stock exchange?