SVG <script> Element (original) (raw)
Last Updated : 16 Jun, 2022
SVG stands for Scalable Vector Graphic. It can be used to make graphics and animations like in HTML canvas.
The SVG
Attributes:
- crossorigin: This defines the COS settings.
- href: This defines the href URL to load.
- type: Type of language or script to use.
- Global Attributes: Some global attributes used like core attributes and styling attributes, etc.
Example 1:
html `
`
Output:
Example 2:
html `
`
Output:

Supported Browsers: The following browsers are supported by this SVG element:
- Chrome 1 and above
- Edge 12 and above
- Firefox 1.5 and above
- Safari 3.1 and above
- Internet Explorer 9 and above
- Opera 9 and above