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
-
When conducting a link building strategy does it matter the country the link is from?
We are a UK business and if we have links mostly from US based blogs and websites does this penalise us. The links are from relevant websites and topics. Should we be focusing on .co.uk sites
Link Building | | Caffeine_Marketing1 -
Inbound link is follow link but we put no follow link back - is it beneficial for rankings?
Dear Moz Community, We are operating in a niche market, where there are not so many content marketing options. What we are left with are link exchanging with relevant sites that are on the same topic but to not directly compete with us. Now we know that if we link back to site A and site a links back to us - for google this is not a very good link. But, some of the sites we are exchanging links with, do not know the term follow vs no follow links. My question - if your link is to site A is a no follow link but they give us a follow link - does it mean thats a better option than a follow vs follow. Thanks for help!
Link Building | | advertisingcloud0 -
Getting a sitewide links from one domain as oppsed to few links from certain pages, a good, bad or horrible idea?
Hello, I have a website that is performing really well in Google for country specific Real Estate Website. I have had this site for just about 2 years and I have 4600+ indexed pages, and about 50 of my main keywords appear in top 10 results on Google. I have now started a second site with a brand new domain, its only about 2 months old. This one is a Travel website and again its country specific (same country that real estate website is performing well in) and since its still building up the content and has barely a couple of backlinks, I am thinking of adding a linkback to it from my Real Estate Site. Is it a good idea to add a site wide link back from header section of the real estate website to my travel website? Both sites has same country and most of the keywords in both relate to this country. Or will I be better off adding a few text links from few pages with best Page Authority? Or - do you suggest that I do not link the two at all? Both sites are hosted on different servers, with different IP's and one is on windows server created in asp.net while another is a magento site. Any advidce / insight will be much appreciated and thank you in advance.
Link Building | | waituk_sanjeev0 -
Does Google Groups and Google Community links count?
Hello Everyone. I noticed when I added a few links from Google Groups and Google Communities. It has a do follow? Does that mean it help your SERPS? Thanks for you help?
Link Building | | EVERWORLD.ENTERTAIMENT0 -
What are inbound links worth after Panda and Penguin, since a site ranks for the NATIONAL keyword "outdoor furniture" with ONLY 7 INBOUND LINKS!?!?
ARE INBOUND LINKS TODAY ALMOST WORTHLESS??!!? After having been the KING of SEO, down to the toilet? Today I got a great sample from a fellow SEO professional showing a site, rockymountainfurniture.com rank for "outdoor furniture" with ONLY 7 INBOUND LINKS FROM 3 DOMAINS and a domain trust of 14!!!! ON A NATIONAL, VALUABLE, HIGH QUERY VOLUME KEYWORD!! I was stunned, but is this the "NEW SEO WORLD" we live in, so we should skip spending hundreds of hours on link building? There are over 32 different types of inbound links but this is much MORE than a radical change, this is turning SEO as it was up-side-down. Any input, thoughts, ideas?
Link Building | | yvonneq0 -
Link Building for a website with 170 K Pages
My website is having around 170 K webpages and every web page is meant for individual keyword. e.g. keyword for every page is height of a movie star. What should be my link building strategy Should I link other sites to index page of my website (if yes then what should be the anchor text) ? Should I link other websites to individual web pages of my website.
Link Building | | ArtiKalra0 -
How often does Google crawls old pages, is it worth to get links from them ?
Let's say there's a blog post in my industry niche that's 2 years old. Is it worth to get a link from that blog post ? How do I know Google will actually re-crawl that page, and how long can that process take ?
Link Building | | pqdbr0 -
Links and keywords
A rather simple question, If i have a paragraph and have the words cat, dog and bird would it be a good idea to have them all linking to the same url? or is better to have them all going to different urls?
Link Building | | Vetshopgroup0