svg element code example Example: create element ns svg document.createElementNS("http://www.w3.org/2000/svg","yourelement")