How to apply gradient colour using css?

How to apply gradient colour using css?

CSS gradients let you display smooth transitions between two or more unique colors. To create a gradient you must define minimum two color stops.