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
-
Has anybody ever heard of or used Linkredible?
Link building is the hardest aspect that we, and I'm sure most SEO companies, deal with. I've been looking into a company called Linkredible (https://linkredible.com) that provides link building services that are supposedly pretty "natural." Their explanations and service descriptions all seem to make sense, but I definitely don't want to do anything that could cause link penalties for my clients. Has anybody used this company or any similar services that could give me some input?
Link Building | | garrettkite0 -
We had a blog that has been inactive since 2011\. Now since the website is redesigned and we are working on link building, is it advisable to use the old blog content in the new blog?
The content of the old blog belongs to the company, hence no issues of copied content. The options I have are: 1. Use old content as is 2. Re-use old content in more interesting format i.e use info-graphics and the likes 3. Do not use any of the old content. Create new content
Link Building | | Tusk2Tail0 -
What do you use to gather and build Links?
I was just wondering what do most people use for gathering and building links? Is OpenSiteExplorer enough? When I am analysing competitors, there are literally thousands of links, how do you scan them and select the ones you want to use? Any other tools?
Link Building | | moneywise_test0 -
Tool to use to build disvow list?
opensiteexplorer has hardly any of the links listed. Is there a tool that I can use that will I search google for
Link Building | | Adsau
"If you are looking for the top provider of digital signage in Australia, visit today"
and I get 177 absolutely crap links to my site, is there a tool that can give me all the urls of the result of a google search? When I disvow does it do much? there is no hope of getting these forum post links removed0 -
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 -
Should I use RSS Feeds for SEO Purposes?
Hello... I am wondering if RSS feeds are good for SEO purposes... If i have a blog on my e-commerce site that links back into my site, should i then submit my feed to a bunch of RSS feed sites? Please tell me if i should be submitting my feed to all the RSS Feed Blog directories i can find or if that will appear as though i'm trying to gain links in the wrong way, from Google's perspective. For example: http://www.feedage.com/ http://www.feedlisting.com/ .... just to name a few of the directories i've found Thanks
Link Building | | Prime850 -
Are backlinks from sites like diigo useful for SEO?
I read an SEO article that recommended getting backlinks from social bookmarking sites like diggo.com. Does anyone have any thoughts on the usefulness of these types of links?
Link Building | | casper4340 -
I was looking for the best practice to use anchor tags...
Seomoz says NOT to use your anchor terms on other external pages as you will cannabilize your main page - this is news to me. Appreciate any input on this.
Link Building | | impressem0