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 'Links to you site' via the google search console API?
hey! Any idea how I can download backlinks via the sear console API? This page from Google has a few commands but not the back links one - https://developers.google.com/apis-explorer/#p/webmasters/v3/ Has anyone collected backlinks data in the past? Apprrciate your help! Thanks Arjun
Link Building | | BaselineTry0 -
Best five links to get first for a new website
I wondered if people had a list of the top five or ten links you should build for a new website in order to add some sense of authority. For example should a new website start with key social media websites such as Twitter, Google+ and Linkedin ? Or top level directories such as BOTW and DMOZ? Should they local for niche website directories in their location or vertical? If you had to choose five links - free or paid which would they be?
Link Building | | highwayfive1 -
Is there a software to help me check whether the sites that i give link to, also place my link on their site (reciprocal link)?
When i exchange links with others, i usually put their link on my site hoping that they'll do the same. Since it's impossible to check all sites whose link i have placed on my page to see if they have put a link back to me, i was wondering whether there is a kind of software to help me do that!
Link Building | | isidora0 -
Best way of starting link building to a new website?
I am doing SEO for a security keyholding company and would like to build up some quality links from related and high PR sites. Submitting profiles to directories is incredibly time consuming. I am thinking of outsourcing a link building campaign to a link building company, but know Google advises against this. Does anyone recommend a cost effective and ethical link building service out there? Or are there any link building techniques to use that will help me out? What I want to be sure of is that a link building campaign won’t get my websites penalised in search engines and the links are from quality and related websites. Many thanks in advance
Link Building | | AlexBarnes0 -
Google sending warnings about Artificial or Unnatural links in Google Webmaster Central
Has anyone seen warnings about Artificial or Unnatural links notice show up in their Google Webmaster central yet? I just looked at each of our clients and had not but after reading the Search Engine Land article at http://searchengineland.com/google-warning-more-about-bad-link-networks-117079 I was wondering what your thoughts were regarding this topic? We are not purchasing links for our clients sites but definitely going out their and building links. Article concerned me that I may run into issues for my link building clients. Thoughts?
Link Building | | jfeitlinger0 -
Best way to create deep links - Building links to inner pages
I am looking for a cost effective way to rank 30 inner pages, which are all low competition, long tail keywords. What type of links are the best for this type of project, social bookmarks, article marketing, high pr links, etc.... Also who would be good to hire for this type of project?
Link Building | | newcitymoving0 -
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 -
If I write a PR release on a site such as PRweb with anchor-text links that is picked up and published by other news sites, do the engines consider this duplicate content or additional, beneficial links?
I recently wrote a news release on PRweb that was picked up identically by 8 other news websites, with the same anchor-text links as the original. Is the reproduction of duplicate content and links across different websites like this to the benefit or detriment of SEO and ranking power? Some of the links are: http://www.mynewsdesk.com/uk/view/pressrelease/eventa-new-eventa-christmas-parties-website-is-launched-648923?utm_source=rss&utm_medium=rss&utm_campaign=Alert&utm_content=pressrelease http://www.prweb.com/releases/christmasparties/neweventasite/prweb8562064.htm Many thanks!!
Link Building | | RobertHill0