: Would Google split a word if it has HTML tags on it? I need to highlight some letters in a word. I wonder if Google will consider the text as a whole word if the crawler finds HTML tags
I need to highlight some letters in a word. I wonder if Google will consider the text as a whole word if the crawler finds HTML tags between the letters.
The text "example" will be written in the HTML page as:
exam<b>p</b>le
so it is displayed:
example
Will Google consider "example" as a single word or will split it, so it wouldn't have relevance if someone searches for "example"?
More posts by @Sent6035632
1 Comments
Sorted by latest first Latest Oldest Best
Usually Google only assigns special meaning to particular HTML tags such as h1, title, a, etc.
The b that you're using in your example used to be a significant HTML tag, but in recent years has fallen out of grace at the expense of CSS-based styling.
That leads us to HTML tags without any semantic meaning such as div, p and span. While I couldn't find any hard evidence to support this hypothesis, it would seem unlikely to me if Google would treat exam<span style="font-weight:bold;">p</span>le any different from example.
If you really want to be sure you can always set up an experiment where you add a unique nonsense word to a page that is separated by a HTML tag and see if the page starts ranking for that particular word.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.