SVG operator Attribute Last Updated : 31 Mar, 2022 Comments Improve Suggest changes Like Article Like Report The operator attribute either defines the compositing operation or morphing operation to be performed. The elements that are using this attribute includes: <feComposite> and <feMorphology>. Syntax: operator = erode|dilate|over|arithmetic|out|atop|xor|lighter|in Attribute Values: The operator attribute accepts the values mentioned above and described below over: It shows that the source graphic defined in the in attribute is placed over the destination graphic defined in the in2 attribute.in: It shows that the parts of the source graphic defined in the in attribute replace the destination graphic defined in the in2 attribute.out: It shows that the parts of the source graphic defined in the in attribute are displayed.atop: It shows that the parts of the source graphic which overlap the destination graphic, replace the destination graphic.xor: It shows that the non-overlapping regions of the source graphic defined in the in attribute are combined with the destination graphic defined in the in2 attribute.lighter: It shows that the sum of the source graphic and the destination graphic defined in the in and in2 attribute respectively, is displayed.arithmetic: It shows that the source graphic and the destination graphic defined in the in and in2 attribute respectively are combined using the following formula: result = k1*i1*i2 + k2*i1 + k3*i2 + k4erode: It thins the source graphic defined in the in attribute.dilate: It fattens the source graphic defined in the in attribute. Below examples illustrate the use of operator attribute. Example 1: HTML <!DOCTYPE html> <html> <body> <h1 style="color: green;"> GeeksforGeeks </h1> <svg viewBox="0 0 420 70" xmlns="http://www.w3.org/2000/svg"> <filter id="thin"> <feMorphology operator="erode" radius="0.4" /> </filter> <text x="10" y="20" fill="green" filter="url(#thin)"> Thin text </text> </svg> </body> </html> Output: Example 2: HTML <!DOCTYPE html> <html> <body> <h1 style="color: green;"> GeeksforGeeks </h1> <svg viewBox="0 0 420 70" xmlns="http://www.w3.org/2000/svg"> <filter id="fat"> <feMorphology operator="dilate" radius="0.8" /> </filter> <text x="10" y="20" fill="green" filter="url(#fat)"> Fat text </text> </svg> </body> </html> Output: Create Quiz Comment T thacker_shahid Follow 0 Improve T thacker_shahid Follow 0 Improve Article Tags : Web Technologies HTML HTML-SVG SVG-Attribute Explore HTML BasicsHTML Introduction4 min readHTML Editors4 min readHTML Basics7 min readStructure & ElementsHTML Elements4 min readHTML Attributes7 min readHTML Headings3 min readHTML Paragraphs3 min readHTML Text Formatting4 min readHTML Block and Inline Elements3 min readHTML Charsets4 min readListsHTML Lists3 min readHTML Ordered Lists5 min readHTML Unordered Lists4 min readHTML Description Lists3 min readVisuals & MediaHTML Colors11 min readHTML Links Hyperlinks2 min readHTML Images7 min readHTML Favicon4 min readHTML Video4 min readLayouts & DesignsHTML Tables9 min readHTML Iframes4 min readHTML Layout4 min readHTML File Paths3 min readProjects & Advanced TopicsHTML Forms4 min readHTML5 Semantics5 min readHTML URL Encoding4 min readHTML Responsive Web Design11 min readTop 10 Projects For Beginners To Practice HTML and CSS Skills8 min readTutorial ReferencesHTML Tags - A to Z List5 min readHTML Attributes Complete Reference8 min readHTML Global Attributes5 min readHTML5 Complete Reference8 min readHTML5 MathML Complete Reference3 min readHTML DOM Complete Reference15+ min readHTML DOM Audio/Video Complete Reference2 min readSVG Element Complete Reference5 min readSVG Attribute Complete Reference8 min readSVG Property Complete Reference7 min readHTML Canvas Complete Reference4 min read Like