CSS Property : fill Explained !
Milap Patel
Technical Manager | Node.js | React | JavaScript | AWS Certified Cloud Practitioner | PHP | WordPress | Front-end | MongoDB | MySQL
The fill property in CSS is used to specify the fill color of a container or shape element, particularly when working with SVG (Scalable Vector Graphics) or some other vector graphics. It is not commonly used with standard HTML elements but is often used with SVG elements like circle, path, and polygon to set the color with which the interior of the shape is filled.
Keep in mind that the fill property is specific to SVG and may not apply to standard HTML elements like div, p, or span. For those elements, you typically use the background-color property to control the background color.
?? Subscribe for more videos like this : https://www.youtube.com/c/CodeCanvas?sub_confirmation=1