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
-
Having some problems with understanding how to properly use anchor text for my keywords' better rankings. Please help!
Hello, Last week I did some work on my website's inner pages linking and some of my highly ranking keywords fell down as a result. I guess I did something wrong, please help me figure out what exactly was wrong! Here is the example of what I did. I put a link to the page that ranks for 'Thermador repair Brentwood' here: http://www.ifixappliancesla.com/blog/2016/09/12/appliance-repair-brentwood/ I put exactly same anchor text, 'Thermador repair Brentwood'. For my blog posts, I use Yoast plugin, so when adding the link, I received the message "You are linking to another page with the focus word you want this page rank for. Consider changing that if you truly want this page to rank." While this one's ranking, 'Thermador repair Brentwood', didn't fall down, others did. Could you please confirm if my understanding is right and I'd better not use the same keywords on two or more pages? If yes, what is the best practice for linking to the pages that are not in the main menu? Let's say, I decided to do blog posts for the areas my appliance repair company serves and to optimize those pages for respective keywords. So, I have pages like "Appliance Repair Service in Brentwood" (which is optimized for "appliance repair brentwood" keyword), "Appliance Repair Service in Beverly Hills" ("appliance repair beverly hills" keyword), etc. I thought that the best way to link to them is to put the same anchor texts: "appliance repair beverly hills", etc. But it looks like the best way would be to use the anchor texts like "Beverly Hills", "appliance servicemen in Beverly Hills". Please tell me if I am right? Any explanation, advise or referral would be much appreciated! Thank you!
Link Building | | kirupa0 -
Which tools/techniques do you use for backlink indexation?
Hello All, I was wondering if you have a list of sites, tools or best practices in order to get your new backlinks indexed sooner by Google. Thanks a lot in advance! Luis
Link Building | | Yeeply.com0 -
What tool can be used to provide a list of links on a website that points to other websites?
For example: On a website there are items in the news listing that point to articles about a company that appear on online news sites; items that point to collateral hosted by vendors we use, etc. What tool can be used to provide a list of these links?
Link Building | | Scratch_MM0 -
What Domain should I use? - Domain authority question
Hi all, I created a website www.bruadair.com approximately 2 months ago, the website is for a luxury villa. Prior to creating this site the villa website was www.bruadair.co.uk , this website had been live for around 4 years. Now after developing the site and creating optimised content etc, I started my link building strategy to try and increase both the page and domain authority of the site. I used MOZ's open site explorer tool to examine my site and compared it with the old domain (www.bruadair.co.uk), this is was where my question arose. The old site has a domain authority of 16/100 and the home page has a page authority of 26/100. The old domain also had 468 inbound links ( the quality of these are most likely questionable, nofollows etc ). The new site in comparison has 1/100 domain authority and 1/100 page authority with no apparent inbound links. Before I noticed this I had generated a few inbound links to the new site, but Moz had not indexed websites since I had done this therefore it probably wouldn't have shown it in the open site explorer. Basically I have cloned the new site to the old web address and am thinking of using the .co.uk version just due to its existing domain and page authority. Would it be beneficial to swap over to the old site to benefit from the domain authority?? Thanks for any help given! 🙂
Link Building | | Tmgale0 -
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 -
Example of a local "boring-niche" site in a relatively high competition area using strictly white hat tactics
I'm looking for an example of a site in a very boring service niche locally "let's say elevator doors in chicago" or something like that, that successfully using blogging, content generation, etc to achieve top rankings above its spammy competitors. Anyone care to give out a case study? I'm not talking about companies that submit to 100's of local directories like yelp, or google maps rankings. I'm talking about organic or blended serps.
Link Building | | ilyaelbert0 -
Is it bad to insert links to other sites and use bold on keywords?
Hi, This is a question I always had doubt about, and would be very grateful in to know your opinions. Is it bad to link to other sites? Can this causes problems to my blog? I frequently insert links in keywords, etc, for other sites. Many times, for sites greater than mine, and I heard from some people that this is bad. Is this correct? In last days, I have used, in some links, the atribute "nofollow". This is good, or not? In a case, for example, when linking to Wikipedia, is it good to use "nofollow"? And about keywords: I'm mostly using bold on them. Is it good, or not? This subject always makes me think. I would be very grateful for any help. 🙂
Link Building | | Andarilho0 -
Anyone use and like Brute force Evo 2
What exactly does it do and does anyone know someone who got in trouble using it? With linkvana and bookmarking demon and manually posting to blogs would anyone need this/
Link Building | | joemas990