I have drawn a quadratic bezier curve using a path in SVG. I had got the required output but its showing console error,
Error: Invalid value for <path> attribute d="M 10 20 Q 15 8 15 20 ZM 15 20 Q 20 23 20 13 0 Z".
Here is my code snippet:
<svg>
<path fill="#C4C24A" stroke-width="1" stroke="#C4C24A" opacity="1" d="M 10 20 Q 15 8 15 20 Z M 15 20 Q 20 23 20 13 0 Z" >
</path>
</svg>
Anyone help me on resolving this issue.
Thanks, Dharani.
You are closing your path twice with Z, thus, adding two different paths to one single tag.
Use different path tags or eliminate one of your Zs from the d attribute
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.