VOOZH about

URL: https://www.geeksforgeeks.org/html/svg-filter-attribute/

⇱ SVG filter Attribute - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

SVG filter Attribute

Last Updated : 31 Mar, 2022

The filter attribute is used to specify the filter effects that are defined by the <filter> element which are to be applied to its elements.

Syntax:

filter="value"

Attribute values:

  • value: The filter values to be applied to the element

We will use the filter attribute for setting the filter of the elements.

Example 1: 

Output:

👁 Image

Example 2:

Output:

👁 Image
Comment