Use of href=# or href=hash
-
I use links with href="#" to trigger ajax functions in order to filter/sort and refresh search results on page. Since several other html tags could potentially be used to bind a javascript event, (ie. span, img, div, etc), could there be a compelling reason to avoid using the anchor tag for this purpose? My concern is link juice dilution since many different pages will have the same links to: Sort by number of bedrooms or Filter by neighborhood. It is also common practice to use links with href="#" to submit ajax forms which are not html forms at all. I am just trying to rethink this practice and implement a best practice method. Thx
-
Okay, right you are then, just trying to help buddy.
As far as I am aware there is no compelling reason to not use the href='#' tag and this will not be diluting link juice anywhere as # is not a page.
Marcus
-
Marcus, I am using the ajax to serve "variable" content to human users only after the page has loaded and user has taken some action to sort or filter, and I specifically do not want that content indexed. BTW, regarding Google indexing ajax content, I am not a fan of using G's proprietary hashbang methodology. If you want the content indexed, then load it with the page. Any content loaded through ajax should be for human consumption only. So, back to the question, about link juice...
Thx
-
Hey, don't take this as gospel, but I believe that Google does not index named anchors so when it looks at a URL it stops at #. So, links using # would not be indexed.
The whole ajax thing is quite interesting as if the page can have different content based on data driven ajax functionality then surely you are missing out on indexing a lot of your content.
I have not done any such experiments with ajax and indexation in this way but there is an interesting moz post on this here: http://www.seomoz.org/blog/how-to-allow-google-to-crawl-ajax-content
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
When we use 'link:' for who get the link, how come google show us the same domain as a link.
the search result show the domain of its own. what is is? and is it meaningful as a link?
Link Building | | onedaykorea0 -
Outbound Links as References - use nofollow or not?
Hey People 🙂 We run an ecommerce site and we research and wrote articles on health topics , and we post the references on the articles in posts ( Magento site / Wordpress for articles ) Should I be putting rel=nofollow in the outbound links or not? I have read a few different posts but none seem to definitively fit my situation. Kind Regards
Link Building | | s_EOgi_Bear
Martin0 -
NAP corrections without using Yext
There are certain places where my address or phone number appear incorrectly online. I have tried to fix this, but many of these services are tied in with Yext, and I don't want to use Yext. For example my phone number is incorrect on whitepages.com. Also, my phone number was incorrect on Americantowns.com, and so i contacted them with the correct number, and then they deleted my listing altogether. More and more directories are tied in with Yext. Does anyone have any suggestions on how to make these corrections without using a service such as Yext?
Link Building | | RandyHT0 -
No-index tags-Can they be used in internal linking?
On my site http://villasdiani.com I am using yoast seo plugin and have I am using tags to organize category with villas on self-catering, full board etc but I have them set no-index as I believe they would create only duplicate content for the categories. Is it still ok to use this tags for internal linking? Example: I have a post in my blog which links to category Beach Villas(they are set to be indexed) and I would like to add option also for self-catering villas itself, which is a tag(set no-index) I am not sure if I am getting this right. Thank you very much, Iris
Link Building | | Rebeca10 -
Best Backlink checker - OSE or Hrefs?
Hi Guys I am looking for a new back link tool but i'm not sure which one to go for. Should I continue using Open Site Explorer or should I go for something else like Ahrefs.com or something else?
Link Building | | AndersDK0 -
Which directories to use?
I've recently has a conversation with a colleague regarding which directories to use when link building. In her opinion we should use only the ones that are relevant and nothing else. For example if you're working on a travel website, you should only submit either to travel directories or local directories (based on the business location). In my opinion yes we should submit to these directories but then you'll reach a limit and then you need to submit to general directories that have the "travel" category, even if the business is in NY and the directory is in India, as long as it is a good directory and has the relevant category. What is your opinion about this?
Link Building | | blablabla20130 -
Do I need to use rel canonical in a blog?
I work at an ecommerce site and we are in the process setting up a blog. Do I need to use rel canonical what talking about a certain category? If I sell widgets and write a blog about widgets should I use that tag? Or is there something else I should do?
Link Building | | EcommerceSite0 -
Does Google use link CTR as a factor?
Been wondering for a while if Google might be using CTR of links pointing your site? Anyone run any tests or have any clues?
Link Building | | Crunchii0