How are stock market prices determined

What are the key elements used to determine stock market prices?