Mobile app version of vmapp.org
Login or Join
Steve110

: Can search engines recognize content in h tags correctly if it includes nested span elements? I have taken on a new client, and when reviewing the site (it's a Wix site), I used this tool,

@Steve110

Posted in: #Html #Seo

I have taken on a new client, and when reviewing the site (it's a Wix site), I used this tool, which claims the page is missing an h1 tag.

However in the Chrome developer tools it's clearly there. The only caveat is that it has numerous span elements (4 to be exact) nested inside of the h1 tag. So it's an h1 with a nested span with another nested span and so on for 4 iterations.

Is this tool just getting confused or is this a problem for search engines? I obviously plan on implementing this differently but I would like to understand if there are any issues with the current implementation.

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Steve110

3 Comments

Sorted by latest first Latest Oldest Best

 

@Connie744

The span element doesn't mean anything on its own.

developers.whatwg.org/text-level-semantics.html#the-span-element
This element is used as a hook for styling or javascript access and doesn't change the document flow. So Google might even just ignore the tag for that very reason and only look at the content of it except if one were to use it to cloak content.

10% popularity Vote Up Vote Down


 

@Voss4911412

I don't think span tag will create any problem with indexing. Just make sure the h tag is closed properly e.g. <h1>...</h1>. If it is perfect then you don't need to worry about the indexing. Search engine will not have any problem crawling your website.

10% popularity Vote Up Vote Down


 

@Rambettina238

The span tag is pretty much the most general tag you can have within a html document and is therefore ideal for nesting within headings etc for many purposes, for example styling. I am sure Google will know this making the tool you are using a little misguided. If you were nesting h1's within h1's then things could get a little funky :).

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme