CSS shadows add depth and dimension to elements by creating visual effects of shadows. There are two main types of shadows:
The box-shadow
property allows you to add shadows to elements. You can control the horizontal and vertical offset, blur radius, spread radius, and color.
box-shadow: offset-x offset-y blur-radius spread-radius color;
The text-shadow
property applies shadow to text, allowing you to create depth and enhance readability.
text-shadow: offset-x offset-y blur-radius color;
This text has a shadow effect.