Location.href vs href?
-
I just got off a Google Hangout with John Mueller and was left a little confused about his response to my question.
If I have an internal link in a div like
widgetwill it have the same SEO impact as widget
John said that as you are unable to attribute a nofollow in an onclick event it would be treated as a naked link and would not pass pagerank but still be crawled.
Can anyone confirm that I understood it correctly? If so should all my links that have such an onclickevent also have an html ahref in the too? Such as
Many times it is more useful for the customer to click on any area of a large div and not just the link to get to the destination intended?
Clarification on this subject would be very useful, there is nothing easily found online to confirm this.
Thanks
-
OK, so as I expected there would be nobody able to answer this question
So I asked John Mueller at Google!
I got a very precise answer.
widget
A div with an onclick is nofollow. so this would be a bad idea if you want internal pagerank to flow.
Currently the only way to make your clickable areas functional and Google friendly is this way below:
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
-
Crediting a second website when I have 2 setup depending on location
Hello Moz Community! I'm a bit stuck with this one and have read a few varying answers! Basically I have an eCommerce website on a .com domain name selling to the UK and Europe currently. I have recently created a very similar selling the same products but solely to the US with a .US domain name. What is the best practice with this, will the 2 separate sites be okay left as they are, or do I need to credit the UK site from the US site as they are incredibly similar? The sites are: www.rhinox-group.com www.rhinox-group.us Thanks in advance!
Intermediate & Advanced SEO | | josh.sprakes0 -
Href Lang Errors
Hi Im getting href lang errors in my site audit for having no self referntial tags. I can't see anything wrong? Can anyone enlighten me 🙂 From this page ** http://www.key.co.uk/en/key/0-4-tonne-wll-6mm-single-leg-wire-rope-sling-580a078n**
Intermediate & Advanced SEO | | BeckyKey0 -
International Href Lang Tag Parameter Issue
Hey, let's say I'm on the following page.. site.com/product-name/product-code/?d=womens I view the page source and it looks like this.. My question is, should I remove the parameter for the hreflang tag???? I just need some clarification that NO parameter page should have a canonical tag and / or href lang with parameters..
Intermediate & Advanced SEO | | ggpaul5620 -
Blog - subdomain vs. subfolderq
Hi everyone I work on an ecommerce site and I'm trying to get more content together for the site & blog. The development team want to put the blog we have on a subdomain of our site, my question is - what is better for SEO Subfolder vs. subdomain I've read a couple of articles to say subfolder is better and a subdomain needs a lot of management to build up authority itself? Thanks!
Intermediate & Advanced SEO | | BeckyKey0 -
Total Indexed 1.5M vs 83k submitted by sitemap. What?
We recently took a good look at one of our content site's sitemap and tried to cut out a lot of crap that had gotten in there such as .php, .xml, .htm versions of each page. We also cut out images to put in a separate image sitemap. The sitemap generated 83,000+ URLs for google to crawl (this partially used the Yoast Wordpress plugin to generate) In webmaster tools in the index status section is showing that this site has a total index of 1.5 million. With our sitemap coming back with 83k and google indexing 1.5 million pages, is this a sign of a CMS gone rogue? Is it an indication that we could be pumping out error pages or empty templates, or junk pages that we're cramming into Google's bot? I would love to hear what you guys think. Is this normal? Is this something to be concerned about? Should our total index more closely match our sitemap page count?
Intermediate & Advanced SEO | | seoninjaz0 -
Divs Vs Table for styled data\
Hello, We're in the process of launching MultipleSclerosis.net and are a bit confused with how to present some specific information. Looking at pages such as http://multiplesclerosis.net/symptoms/, http://multiplesclerosis.net/what-is-ms/courses-patterns/ and http://multiplesclerosis.net/treatment/prescription-nonprescription-medications/ is it better to keep this data structured as divs, and style them as tables or to keep them as tables and style them accordingly. Though not technically "tabular" data, i'm not too sure how to handle this. The text to code ratio is quite high with the divs in the markup, which though i'm not overly worried about, it could cause some issues with the site's indexability. Thanks I appreciate any feedback.
Intermediate & Advanced SEO | | OlivierChateau0 -
Pricing Page vs. No Pricing Page
There are many SEO sites out there that have an SEO Pricing page, IMO this is BS. A SEO company cannot give every person the same quote for diffirent keywords. However, this is something we are currently debating. I don't want a pricing page, because it's a page full of lies. My coworker thinks it is a good idea, and that users look for a pricing page. Suggestions? If I had to build one (which I am debating against) is it better to just explain why pricing can be tricky? or to BS them like most sites do?
Intermediate & Advanced SEO | | SEODinosaur0 -
What is the best strategy to get a company located in one city, but does business in other cities, ranked locally in the other cities as well?
For example: this client is a custom clothier located in Phoenix, but would like to come up in the search engines for Scottsdale, Tucson, Prescott, Chicago, etc., because he travels to those cities and does business there with his custom clothing business. His website is www.artfultailoring.com Right now, he'll come up for custom suits phoenix, custom shirts phoenix az, etc. So how would I get him to come up in the search engines in more locations than just Phoenix?
Intermediate & Advanced SEO | | cgray010