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
-
How you do guest posting on behalf of your clients? What do you use in the author bio - your name, client's name or a fake name?
I would like to hear from SEO agencies or link building teams - how you manage guest posting on behalf of your clients? 1. What is your outreach process - Do you pitch as a marketing manager or as a subject expert? 2. What do you mention in your author bio? Your name and your bio as outreach manager/ marketing manager? Your client's name and client's bio? A fake name - as a subject expertise? 3. Which email ID and contact details you use? - Your work ID/ client's ID/ Fake Gmail ID? I work for an SEO agency and I am interested in content and SEO related blog posts. But, I have many clients in the home improvement, real estate, food, fashion and other industries. I don't feel right to use my name when posting a guest blog on their behalf. What you guys prefer? Any thoughts?
Link Building | | NSnidhi0 -
I've published my forst infographic and started outreach to get links. Should I use a canonical URL and if so how?
I've published my first infographic and started outreach to get links. I've also submitted it to several infographic directories. Should I use a canonical URL and if so how?
Link Building | | roadhaulageservices0 -
Blog commenting for SEO - Useful practice?
With most blog comments being no-follow, I was just wondering whether blog commenting for an SEO campaign these days was actually a worthwhile practice. Would love to get some insight on this.
Link Building | | Gavo0 -
Unable to build google local listings, are citations still useful?
Hello Google seems to be unhappy about letting us build google local profiles around our 'virtual locations, for each of which we have a dedicated page. We have approximately 100 'virtual locations' with addresses. I was wondering if, despite not being able to build google local profiles, it would still be worth it to build yahoo, bing, and utilize citation building services to each of those virtual locations. Would these citations in any way help bing or yahoo rank higher locally? Would the locally optimized city page rank higher as a result of all these citations? This is a service-industry based website btw.
Link Building | | ilyaelbert0 -
Using Matt Cutts on facebook adverts
I keep getting a little picture of Matt Cutts pop up in the right hand side bar every time I am on Facebook. The advert goes through to this company seocosmo I wonder if Matt Cutts knows they are using his image to sell SEO services 🙂
Link Building | | highwayfive0 -
What are the pros and cons of using a link builder? Can link building be outsourced?
Hi, I have great content on my website which I would like to build external links to from other websites. I am told this will increase my domain authority and ultimately help search engine ranking positions. I have very limited time in my hands and now thinking of outsourcing the link building component to a specialist. Is this a good way of doing it? Could you recommend professional link builders?
Link Building | | Saunders18650 -
Using brand domain for easy verbally said with 301 redirect to exact match.net for a site
I have recently bought an exact match.net for a keyword with no hyphens (on the fence about hyphens, read so many different views on here). From looking around it seems that not all solicited links that I am interested in use anchor text, but more significantly exact match domain would be like automatic anchor text when anyone from the general population posts a link to your site. I sell print books and am thinking of keeping the non-keyword domain in them so they are easy to say and type, while using the exact match domain for everything else online which the non-keyword domain would 301 redirect to. I don't do any programming and will use cPanel on my webhost to do the 301 redirect, I already have one 301 to go to the www subdomain so that would make two 301's. This might sound quite straight forward to many here but it's fairly new to me and I've not seen cPanel mentioned here yet, so was wondering if I am going about it the right way.
Link Building | | Zoolander0 -
Can anyone provide any useful insights on how they use latest news items to help with SEO?
Hello, I have heard about SEO's and PR types riding off the back of latest news items that can be tied to the products or services they are trying to promote. Recently I read about how an SEO had distastefully written an article using the name of a famous singer who had sadly passed away and used this event as an opportunity to write about a small business models 😞 Can anyone provide any useful AND ethical insights on how they use latest news items to help with SEO?
Link Building | | Wallander0