I was validating my code, and got the following error Tag cannot be self-closing. Use an explicit closing tag.
in IE for my svg path because it's self closing.
<path
d="m53.911,10.023c-1.46-.898-3.195-1.019-4.699-1.019h-3.439c"
/>
Now I know meta tags in HTML5 don't require the forward dash /
, you just close them with >
. Does the same thing apply to svg tags? Like so:
<path
d="m53.911,10.023c-1.46-.898-3.195-1.019-4.699-1.019h-3.439c"
>
Or… Using an explicit closing tag? Like so:
<path
d="m53.911,10.023c-1.46-.898-3.195-1.019-4.699-1.019h-3.439c"
>
</path>
What is the correct way of closing a path?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…