What is the use of <svg> tag and what are its attributes?

3rd Dec 2019, 10:53 AM
Piyush Dilip Sonar
Piyush Dilip Sonar - avatar
3 Answers
The HTML <svg> element is a container for SVG graphics. SVG is a language for describing 2D graphics in XML. SVG is XML based, which means that every element is available within the SVG DOM. You can attach JavaScript event handlers for an element. In SVG, each drawn shape is remembered as an object. If attributes of an SVG object are changed, the browser can automatically re-render the shape. SVG has several methods for drawing paths, boxes, circles, text, and graphic images.
3rd Dec 2019, 11:03 AM
Maxime Brochard
Maxime Brochard - avatar
3rd Dec 2019, 12:08 PM
Asmit joy
Asmit joy - avatar