create svg element javascript
// SVG.js var draw = SVG().addTo('#drawing') , rect = draw.rect(100, 100).fill('#f06')
Here is what the above code is Doing:
1. We’re creating a new SVG drawing and adding it to the HTML element with the id of drawing.
2. We’re creating a new rectangle and filling it with the color #f06.