Run ❯
Get your
own
website
Result Size:
625 x 565
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <body> <h2>SVG stroke-dasharray attribute</h2> <svg height="100" width="400" xmlns="http://www.w3.org/2000/svg"> <g fill="none" stroke="red" stroke-width="6"> <path stroke-dasharray="5,5" d="M5 20 l215 0" /> <path stroke-dasharray="10,10" d="M5 40 l215 0" /> <path stroke-dasharray="35,10" d="M5 60 l215 0" /> <path stroke-dasharray="20,10,5,5,5,10" d="M5 80 l215 0" /> </g> Sorry, your browser does not support inline SVG. </svg> </body> </html>