Mobile app version of vmapp.org
Login or Join
Karen161

: SEO of in header Does the <span> element have any SEO side-effects? Are there any semantic preferences between the following two or parsing differences between search engines? Clean <h1>:

@Karen161

Posted in: #Html #Seo

Does the <span> element have any SEO side-effects? Are there any semantic preferences between the following two or parsing differences between search engines?

Clean <h1>:

<h1>Search Optimised Heading</h1>


vs <span> in <h1>:

<h1>Search <span class="someColour">Optimised</span> Heading</h1>

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Karen161

2 Comments

Sorted by latest first Latest Oldest Best

 

@Cofer257

There is no difference between your two examples. However, if your differently-coloured word is an important keyword, you may consider using the <em> or <strong> tag to suggest emphasis. CSS can take care of the styling:

h1 em {
font-style: normal;
color: #123456 ;
}


Emphasis usually boosts SEO a little, although I don't know how much difference it makes when inside a header. Regardless, it makes for some simpler and more semantic HTML which is always a bonus.

10% popularity Vote Up Vote Down


 

@Phylliss660

There should be no difference. The <span> element has no semantic meaning whatsoever.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme