In order for Google to recognize a hyper-link on your website, does it have to be written in a specific java script?
-
Does it have to read as the following script?
-
Not a problem I find that all too often, if the question is a bit ambiguous - people will ignore it. If there are only a handful of interpretations, I will still try to answer
-
Thank you, that was extremely insightful and helpful.
-
Just so you are aware, the code-sample which you supplied is HTML and not JavaScript (or for that matter, any type of script. Scripting languages include JavaScript, Python, Ruby, Perl etc).
You may be asking one of two things (I think!):
1) Is there a set HTML format for hyperlinks which Google knows how to read?
Yes, and you can find **information all about ** conventional use of the <a></a><a>(HTML) tag here:</a>
<a></a>
<a></a>
HTML is a static language and is not (unlike many scripting languages) 'object oriented'. You don't define "<a>" and as such</a> <a>is not interpreted based upon your programmed parameters.</a> <a>always means the same thing (to a a web browser). Sure stuff like CSS can style links in different ways, JavaScript can modify</a> <a>tags by injecting event-tracking attributes etc (also a common use of jQuery) but fundamentally the usage of</a> <a>is</a> <a>(mostly) universally agreed. So yes - links are coded according to conventions and Google will interpret those widely accepted conventional use-cases, as well as a few more experimental deployments (possibly through error handling in Google's algorithms). In general, you should follow W3C / W3 Schools guidelines. There are many forms of link (no-followed links, text links, image links) and all are valid but yes - they are predetermined</a>
<a>2) This is the HTML which my JavaScript will output - is it ok?
Yeah it's fine dude. If you can handle JS, you can handle HTML (it's way simpler). One thing though, although Google can deploy rendered (JS-enabled) crawling, that involves using headless browsers and such to render the 'modified' source code (so, what you see in 'inspect element' is the modified source. What you see in "view page source" is different, that's the pre-modified or base-source code).
Usually speaking this takes 10x longer than simple DOM / base-source scrapes. As such if Google were to deploy that tech on every crawl for every page on the web, the efficiency hit to their 'index the web' mission would be colossal. Many studies show that Google will not render JS on all sites (especially one perceived to be low value). Even on sites where they will use this tech, they won't deploy it all of the time. There really is no substitute for forcing your links and content to be readable in the base-source code (un-modified). It's way better for crawlers, way more efficient for them to work with. Just because Google ' can' do something, it doesn't mean they always will. It doesn't mean it's a good idea to ignore basic SEO principles!
Hope that helps</a>
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 long does it take my links to get indexed by Google?
How long does it take my links to get indexed by Google? Also Is it possible to get my links indexed faster?
Link Building | | EugeneMot0 -
Is hiring bloggers to review my products while back linking to my website bad for SEO?
For many months I have been following this strategy of hiring high domain authority bloggers to review my products and link back to my website. For a month or two my rankings improved but now I suddenly lost rankings. Can Google penalize me for hiring bloggers to review my products? Bloggers do mention in the blog that the product was requested for editorial review. Any tips will be helpful. Regards
Link Building | | DebashishB
Deb0 -
How Effective Are Links Between The Same Company's Websites With Different Domain Extensions?
Morning! The main competitor of an eCommerce site I'm working on has a total of 31 sites for 31 different countries. Each one of these sites has a different domain extension (.com, .co.uk, .fr, .it etc.), and every single one of these sites' pages links to all the other homepages through a dropdown menu on the navigation bar. When I pop the .co.uk URL (our main competitor) into Open Site Explorer, I'm advised they have a 45,079 links from 475 domains. If I look at 'just discovered' links, most are from their own sites - I guess MOZ picks these up every time a new page is created. Now, these guys are huge in the UK. They rank in the top 10 for pretty much every single search term and, to put it into some kind of perspective, their Search Metrics score is 33,000 compared to our measly 160! Don't get me wrong, they do get some decent links from authoritative sites, but it seem most of their links are from their own sites. How does Google view these? Does my competitor have these thousands of 'internal' backlinks to thank for their current position? I've just checked their .kr URL and this has 12.5 million(!) links from just 450 domains. Do every single one of these links pass equity? Or does Google just look at one from each domain? Thanks, Lewis
Link Building | | PeaSoupDigital0 -
If i get link pointing to a specific page , will that link add up to the count of linking root domains too ?
If I create a fresh link pointing to specific page on my site, apart from adding a number to "page linking root domains" does it also add up to root domain linking ?
Link Building | | Techbate1 -
Are the following considered bad links for Link Building.
I've been doing a lot of research lately on link building & I've read a lot about having a diverse amount of links. Social links, Blog links, comment links, footer links, No follow links, Directory links as well as links with Anchor text URL match, brand match, partial brand match, non-descriptive, and with keywords. But there is a lot of talk of removing those links that look like a site that's built just for link building purposes.... but Directories are basically built for link building are they not? I'm wondering if anyone can tell me if they feel links from the following directories would be bad links. (Non-Paid) http://www.yoganza.com http://www.wkool.com http://www.wee-directory.com http://www.voicelet.com www.hotfrog.ca http://www.webdirectorieslist.com http://multiplelistingboard.com http://mozdirectory.net http://freedirectorypr.info Industry specific below: http://bestautolinks .com http://automotivedome.com http://automobilebuzz.com http://craigsautolinks.com Thanks so much for the help!
Link Building | | DCochrane0 -
Link building / baiting in the Google zoo
I work for a consultancy, and in the past most of our links have been acquired by giving away privacy statements etc for websites, including a link back in the body of the document, and making it a licensing requirement that the link be kept. We're launchinga new site. We want this one to be whiter-than-white, and would appreciate some advice on the following options. Option 1: no links Remove the links from the documents, and don't require links for the use of the documents. Leave a non-linking credit in the documents. Perhaps ask nicely for links from other pages. Option 2: links on other pages Remove the links from the documents, but make it a licensing requirement that users will link to our site from another page on their site. I appreciate that most won't, but some will. Option 3: retain the links Keep the links in the document, using domain name (with and without http and www) and business name anchor text. Option 4: script the links Use scripts to generate randomized links in the documents, so that no two are the same, but with relevant linking text for the most part. We're risk-adverse with the new site, and it will pick up some links "naturally". We're therefore tending toward option 1, on the basis that it may well generate as many links as option 2. Which of these options would you choose? Are there any other options we should be considering?
Link Building | | seqal0 -
There is a New link to my Site but I can see it on link report ?why ?
Hi I found out using link campaign and Open site explorer that my competitors where getting links from this page http://www.visitgreece.gr/en/activities/land_sports/golf So I conatc the admins and added our golf courses too Is the dunes and the bay course in the middle of the page But this happened 3 weeks ago and still this linking domain is not appaering in my campaign why is that any ideas ? does it take so much time to appera to SEOmoz ? Or the problem is because they are linking 2 diffrent sites ? my site is www.costanavarinogolf.com Thanks a lot in advance for your help
Link Building | | grzontan0 -
Will No Follow Links count toward your root domain links for Domain Authority?
I am wondering if no follow links help, hurt, or do nothing when it comes to increasing page and domain authority? I know they are not supposed to pass rank and I have read discussions that some people suspect they still might, but I am wondering if I have a mix of follow plus no follow, will the no follow ones increase the count of the root domains linking to me and help boost my authority? Assuming of course the no follow links are coming from quality sites with high page and domain authority of their own. Thanks.
Link Building | | FastLearner0