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>
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
-
Google Penalty due to external links
On Sep 3, we got a Manual Action by Google: unnatural links to your site Immediately we arranged to have all those links the rel="nofollow" atttributes, these were links set by our customers since we are hosting providers. We sent a reconsideration request to Google on Sep 8 and this is their answer:
Link Building | | netbuilder
We’ve reviewed the reconsideration requestfor xxxx and modified its status, but we still believe that content on your site or links to your site are outside our quality guidelines. No more info provided. - We double checked everything but could not find anything else that could harm us so we asked Google (in a new reconsideration request sent on Sep 11 to provide us some samples. On Sep 24 Google answers with a sample of 3 sites which contains links to us. After verification, all the external links to us have the rel="nofollow" attribute !! Today the manual action is not anymore a side-wide one but a partial one and applies to unnatural links--impact links. So it seems that we need to physically have those links removed? As well I checked https://support.google.com/webmasters/answer/2604772?ctx=MAC and he does not refer at all about setting the rel="nofollow" attribute, Looks like Google wants the full monopoly on text links.0 -
Google indexing nofollow links
Hi Guys I have yellowpages.com.au appearing in the link profiles for some of my clients, but not in others (even if clients without the link in their profile have had an actual link on yellowpages.com.au longer than some who do have it in their profile). My understanding is that Google MAY eventually index a nofollow link... My question is what would cause Google to actually index it?
Link Building | | JuiceBoxOM0 -
How can create links of our website on . edu and .gov sites?
I want to create links on .edu & .gov sites for my website . So, what kind of activities we will do for this process and how? Can you also provide list of .edu and .gov sites for create backlinks?
Link Building | | surabhi60 -
Thoughts on creating a resource/recommend links page in order to attain links?
Hey guys, Just wondering, how does Google view reciprocal link building nowadays? I've heard in the past that it's something that Google isn't particularly keen on. However, more recently, I've also read that - as long as the links are decent (and in moderation) - link exchanging is by no means a bad thing. The reason I ask is that I'm thinking of creating a "resource/recommended links page" for a client of mine. Because of their industry, it's really apparent that attaining links is often only possible if there is the opportunity of a reciprocal link in return. Therefore, I'd need to have a resource/recommend links page of my own. Is this something I should go ahead with to make it much easier to attain links? Or should I try to avoid reciprocal links and attempt to pinpoint one-way linking opportunities - even if they're thin on the ground? Any help much as appreciated as always. Cheers.
Link Building | | Webrevolve0 -
Deleting links
I've got 280 links on my wordpress blog site, apparently it's recommended to keep under 100 links. How would I know which links to get rid of and which links to keep?
Link Building | | gimes0 -
Which is better - A) links from multiple IP addresses, or B) Links with more associated social signals?
If you had to choose: A) 100 links contained in posts on 100 PR2* blogs, all on separate IP addresses, where none of the posts had associated social signals, or B) 100 links contained in posts within a single PR2* blog (single IP address), where each of the posts had 20 associated social signals, Which would you choose to increase your SERP performance? *I chose PR2 so that PageRank would not be a factor in the decision.
Link Building | | JohnScottDixon0 -
Search volume on google.no vs google.com for keyword
Anyone know if there is a way to find out search volume for a keyword on google.com vd for instance in our case google.no ? The reason i am asking is that i am ranking 17 on google.com vs 1 on google.no . how do i go about to increase .com ranking ?
Link Building | | danlae0 -
How best to link multiple related websites.
I have a handful of e-commerce websites that overlap each other some in the same niche. I have already heard that it would have been best to make just one website, but this is not practical for me. Our business model goes back to a time before the internet. We have relationships with manufacturers where they refer business to us because we brand web sites which will not switch customers to competing brands. Our agreements make it ok to link to other websites so long as we have branded websites that focus on the specific manufacturers. For SEO, what is the best way to link these sites? Site wide links in footers.? Single links at on homepages? One way links from the most powerful site? Some other method? We have been wrestling with this question for some time.
Link Building | | EugeneF0