| 8:47 am on May 13, 2014 (gmt 0)|
|I have a bad habit of using <a> tags for navigation items on a page. |
That's a bad habit?!
IMO using an anchor is the correct, accessible, element to use.
With regards to SEO, I can't see how this is necessarily "bad"? Assuming these are literally just JS actions? The
href="#" (internal) anchors are likely to be simply ignored by search engines.
| 9:14 am on May 13, 2014 (gmt 0)|
When is an empty element a good habit?
My impression was that the OP is talking about a CMS/wysiwyg system that shoves in anchors willy-nilly even when they don't go anywhere. If it isn't a link, don't call it one. And if you must use js for everything, at least code it as a real link for the benefit of scriptless users.
As a user, I am annoyed when I click on something that doesn't go anywhere. I am still more annoyed if I then sneak a look at the page source to see if there was a typo, and instead see nothing but <a href = "#">. It smacks of half-finished coding. Take the extra five minutes to get it right.
| 9:41 am on May 13, 2014 (gmt 0)|
from a search engine perspective, <a href="#"> is the equivalent of a self-referring url.
| 9:13 pm on May 13, 2014 (gmt 0)|
Last I knew search engines ignore everything after the #. Which means <a href="#SomeAnchor"> isn't really a link at all (from a search engine perspective) and what's broken is your SEO program that can't figure that out.
| 10:08 pm on May 13, 2014 (gmt 0)|
|Last I knew search engines ignore everything after the #. Which means <a href="#SomeAnchor"> isn't really a link at all (from a search engine perspective) |
The "How your data is linked" area in wmt tends to support this interpretation. They include obvious local navigation like "back to thumbnails", but not page-internal forms like "back to top".
:: detour to check that this hasn't changed since last time I looked ::
The good news is that "click here" doesn't make the top 200. (I hope this means it actually doesn't occur, not just that google ignores it when listing anchor text.) The bad news is that "aquí" does-- and I'm tolerably certain google speaks Spanish. :(