The color
attribute is used to provide a potential indirect value, currentcolor
, for the fill
, stroke
, stop-color
, flood-color
, and lighting-color
attributes.
Note: As a presentation attribute, color
can be used as a CSS property. See CSS color for further information.
As a presentation attribute, it can be applied to any element, but as noted above, it has no direct effect on SVG elements.