What is clip in CSS, and how is it used?

Subh Prakash Singh
Invent the Future
The clip property defines a rectangular clipping region for an element, making only the portion inside this region visible. It’s typically used for cropping elements in combination with absolute positioning. For example: img { position: absolute; clip: rect(0, 100px, 100px, 0); }