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
-
Does google flag bad back links
where would we go identify the links that are bad is there a way to get a list of each individual link not just the site and number from the site
Link Building | | CostumeD0 -
Does nofollow link has any effect on link building
I recently read some article on noflollow link and the author says that nofollow link does have some effect on page rank. Can anyone explain the effect of nofollow link on website ranking?
Link Building | | petwho0 -
What is the process of link earning to avoid link building?
Hi All, I want process to earning links for new SEO 2014. Can anybody explain? Thanks, Akhilesh
Link Building | | dotlineseo0 -
Link building during link removal
We were advised by out outsourced link removal vendor not to build any links while they are removing links pointing to our site. I am worried that our site will lose significant traffic if we dont build any new links while waiting for them to remove links that caused our site to be penalized. What are your thoughts?
Link Building | | WizardOfMoz0 -
Page specific external followed links
Hi, I'm using Site Explorer to research my website but the stats don't have up! Page Specific - External Followed Links: 11
Link Building | | Hughescov
Sub Domain - External Followed Links: 40
Root Domain - External Followed Links: 40 Total links: 1,733
Total links on webmaster tools: 781 How does this add up? Why am I getting varied results.. And what is the difference between Page, Sub and Root when I only tested www.mysite.com? Any help would be great! Shaun0 -
LINK BUILDING - Does it really matter if the link is not relevant?
Hi guys, I have just done a lot of link buillding and I thought I am just going to link build and I am not going to go after RELVANT links. I have property/real esate website and I have been any kind of link builidng and I have noteced some good increases in rankings.. So my questions is; Does it really matter if the link is relvant to property or real estate if I have got ranking increases? Or will it later harm my site?? Thanks Gareth
Link Building | | GAZ091 -
Are Non Followed links good or bad for my website?
I have 3,000 followed links and a 1,000 non followed links. The non followed links are from an advertising campaign. Do these hurt or help me? Thanks Ron
Link Building | | bsofttech0 -
Reciprocal Links Or One Way Links?
After reading a recent blog post on guest blogging and ways to build relationships for link building purposes, I began to wonder about something. It is my understanding that one way backlinks are superior to reciprocal linkage, but reciprocal is better than no link at all. So is it still worthwhile to do reciprocal guest blogging, and will the value of the links be worth it when completed? Or should we just be of the opinion that: One Way Link > Reciprocal > No link
Link Building | | dignan990