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 to get Google to re-recognize a backlink that used to go to a 404?
I recently rebuilt my website last year, the address is enjoyparkcity.com. I used to have a great link from cnbc.com at http://www.cnbc.com/id/34977253/page/5, but when I rebuilt my website, that landing page url no longer existed (http://www.enjoyparkcity.com/search_featured.html). I recently rebuilt a page to catch that link again, and it works fine. Is there a way for Google to re-recognize it? I think its a normal do=follow link so Im guessing it should be valuable? Hoping it could help my rankings? Thanks in advance for any advice!
Link Building | | SeanMatyja0 -
How many nofollow links should we build to have a natural link profile
Hi guys, As with many link builders we have been building lots of dofollow links for our site, so many that mainly our incoming links are dofollow. Some pages have 99.5% dofollow external links which I know is not very natural. In your experience in terms of percentage how much should you have in terms of nofollow external links in your link profile. I noticed SEOMoz has about 12-13% nofollow external links, shall I go with this figure? Thanks guys. David
Link Building | | sssrpm0 -
How to Define Quality of External Website During Link Building?
I want to know about process, method or tool which can help me to define quality of external website during link building. We are searching too many questions and topics on Google to resolve daily mind bubbles which land us on different website with different subject. I found that, I was able to drop my website URL over there but confuse about quality of website. I am selling Football and create external link from baby care website. So, will it make sense? My concern is that, Can we create external links from different subject website or specific to subject oriented website? Is there any specific method which help me to understand more about external website and help me to take decision about link building?
Link Building | | CommercePundit0 -
Many competitor's backlinks are in content anchor links. Ho do I get these same links?
Hi I managed to open up OSE. I'm finding that much of the competition's backlinks are in content anchor text links. Am I supposed to get backlinks from these same pages using the same anchor text but linking back to my page or is that allowed? If so, how do I get these in content blog post links? Thanks. Sunil.
Link Building | | sunilmuse0 -
Java Script Link
Hello, We are due to get a link on the daily telegraph page (UK Newspaper) very shortly. We have just noticed there links are within javascript, what do you think of this link? | |
Link Building | | ScottBaxterWW0 -
I am seeking a high quality sites to submit articles for free in order to get links. Can you recommend me on those sites?
I am seeking a high quality sites to submit articles for free in order to get links. Can you recommend me on those sites?
Link Building | | yoavm0 -
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 -
Free link on a Paid Link Blog
Hi there, I have been doing some outreaching, and managed to have a blog post accepted on a authority blog. They included links to my website, and I was very pleased with the placement. However, having browsed through the site, I was worried to see that they openly admit they allow 'reviews' of websites, with backlinks included, for $50 per review. I am worried I might be penalised without actually doing anything wrong. I did not pay for my link, but the link has been placed on a site which openly admits they accept payment for links. Should I be worried? Should I ask them to take it down? To date I have been told countless times by bloggers I am outreaching that if I pay $10, $50, $100 etc I can write a blog post. I have never accepted because of the risk of penalization. Now, unwittingly, I am linked to from a paid link site with a blog post that would look like I have paid for it because of the placement and style of back link. What do you think? Thanks,
Link Building | | giveacar0