What is ask price and bid price in stock market

Why is the difference between ask and bid prices important in trading?

The ask price is the lowest price a seller will accept, and the bid price is the highest price a buyer will pay. The spread between them helps determine the current market price.