How do solar panels work?

Sunlight contains photon particles which hit the solar panels and cause electrons off silicon chips to get directed to the wiring to batteries or appliances, providing electricity