Mobile app version of vmapp.org
Login or Join
Margaret670

: SEO impact of links for javascript functionality For example, jQuery tabs uses a link as each tab, that opens the tabbed content. Or often times developers will use a link as the anchor text

@Margaret670

Posted in: #Javascript #Links #Seo

For example, jQuery tabs uses a link as each tab, that opens the tabbed content. Or often times developers will use a link as the anchor text for a hover tooltip, even though it doesn't actually link anywhere. Given that the functionality uses javascript, for the most part links aren't needed, however there the most apt markup to describe the purpose. ''

Do links with href="#" effect seo? Should they be avoided? Or do links to the current page be helpful in any ways?

Just to over explain, here's an example of the 2 ways to code it, this time using dhtml rather than javascript.

<a href="#" >Anchor text <span class="tooltip"> This will appear on hover</span></a>


CSS:

.tooltip span{display:none;}
.tooltip:hover span{display:block;}


OR without a link

<div> Anchor text <span class="tooltip"> This is my hover tooltip</span></div>


Same CSS

Thanks for the help!

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Margaret670

2 Comments

Sorted by latest first Latest Oldest Best

 

@Tiffany637

Anchor links are fine, you definitely won't be penalized for them, and there's no reason to avoid them.

10% popularity Vote Up Vote Down


 

@Nimeshi995

Google treats # as a internal on the page link and as far as we know its not harmful though it will be still be considered keyword stuffing if you have the same keyword over and over. 100,000's of sites if not millions of sites use a links for various hover tooltips and other funky JavaScript such as tabs, accordions, sliders etc. So Google will be fully aware of this and will cater for, if it harmed SEO I'd sure we would be aware of it.

Personally I don't believe in using a links when possible afterall technically there not site links, so if possible use:

<div class="hovertip"> Content Here</div>


But also if your a keen markup wizz then you might want to opt to use a HTML5 method which allows for better markup as well as easier use:

<div data-placement="bottom" data-toggle="tooltiphover" data-original-title="description here">

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme