Interview Question

What are gradients in CSS?

Gradients are generated CSS images made from color transitions.

💡 Concept ✅ Quick Revision 🎨 CSS

Answer

CSS gradients are generated images that smoothly transition between color stops. • Linear gradients progress along a line. • Radial gradients spread from a center point. • Gradients can be used anywhere a CSS image is accepted.

💡 Simple Example

.banner { background-image: linear-gradient(90deg, navy, cyan); }

⚡ Quick Revision

Gradients are generated CSS images made from color transitions.