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
-
A lot of blogs use wordpress or blogspot, are these blogs still useful for SEO in terms of linkbuilding, or should they be avoided?
I am very new to linkbuilding and SEO as a whole, so please forgive my ignorance. Reaching out to bloggers is a common tactic, but I've found a lot of people tend to blog with the assistance of wordpress or blogspot. I was wondering whether these blogs are still useful for SEO or if it is best to avoid them? Thanks in advance, Lewis
Link Building | | Samstore0 -
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 -
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 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 -
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 -
Am I using my Blog properly? -- Advice Please
Hello... I am just looking for some feedback in regards to the blog on my website. I am using the blog to create unique and fresh content, hoping that it will in turn help my site attract visitors and better rankings... My question is, does each post have to be at least 500 words or is a 300 word post fine? I do put hyperlinks back to the correlating pages on the site inside each of these posts, just wanted some feedback on if everything i write needs to be roughly 500 words..... Here is my blog if you want to take a look at what I've been doing and provide any feedback..... thanks!
Link Building | | Prime850 -
Should I use Article Submitter software?
I've downloaded Article Demon a while ago and have been trying to use it all though it hasn't been as easy to use as I would have liked. I was just wondering what you guys feel about Article Submitting software, if it's useful or if it's a waste of time? Regards
Link Building | | HeadStud0