SVG inside a heading element

Started by jetboy, May 02, 2018, 09:24:12 AM

Previous topic - Next topic

jetboy

If I use an SVG text element inside an <h1>. E.g.:

https://codepen.io/AmeliaBR/pen/jicEw

I believe the text is spidered by Googlebot. Does it carry the semantic weight of the <h1>?

Adam C

I would have thought so.  Its just an H1 with some additional, non-conflicting nested tags, right?

ergophobe

When I saw the subject, I was thinking you meant a .svg file as an image.

But in this case, it sure seems like Adam is right - I don't see why it would be different from wrapping it in a <span> or something.