: If I have nested a span tag inside H1 tag,Is it effect SEO I have a site that give users all kind of services so let's say I put a span tag inside my H1 tag and with js I will replace
I have a site that give users all kind of services
so let's say I put a span tag inside my H1 tag and with js I will replace it every 3 sec
for example my h1 tag contains :
<h1>Best italian food in NY order now <span id="dyn_txt">pizza </span> </h1>
With js i will replace the inner text of the span with: pasta,bolognese...
More posts by @Angela700
2 Comments
Sorted by latest first Latest Oldest Best
It depends on how you are doing the JS. Google wont index dynamic content (usually) so if you are pulling these items from a db or remote server then you could have an issue. If you are just rotating through a finite array of items by alternating css classes and those are in the static html but hidden (a jquery approach) then the site should be ok.
I'm looking at: support.google.com/webmasters/answer/35769?hl=en#design_and_content_guidelines
And it states "Avoid tricks intended to improve search engine rankings.". It also suggests you make the site primarily for users. I'm not sure if users want to see text change every three seconds.
Also, the contents of the H1 tag are very important to search engines and with luck you'll get listed in search engines for pizza instead of bolongese or pasta. because pizza is what the search engine bots can read. I personally would not use any other tags inside the H1 tag.
If you must provide word animation on your site, you should make images with those words in them to help users understand the meaning. For example, for pizza, show a box of pizza, and for pasta, show spaghetti. Make a carousel formatted design. My bank's website uses a carousel based design where large images change every few seconds with the option to choose an image and to pause the changes:
pcfinancial.ca/
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.