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
-
Unsolved My website www.boultaudio.com, but my toxic backlinks kept on increasing, even if i disavow the links? @s
My website best wearable brand is showing decrease in High Quality Backlinks.
Link Building | | blayze010 -
How To Encourage Google To Discover Links?
I got a valuable backlink from a high authority website (MSN), but the link is placed in the middle of a slideshow with 20 pictures, and the only way to reach it is by clicking through the slideshow. After 6 months, this link still hasn't been noticed by Moz or Semrush, and I assume Google hasn't seen it either, because it's in the middle of a slideshow. Is there any way to encourage Google to find this link? Or am I all out of luck?
Link Building | | David56750 -
Why Links from Top Level Domains doesn't Pass Link Equity?
Hello, I have a doubt about Equity-Passing links report of OpensiteExplorer.org According to Sam Weber http://moz.com/community/users/432678 links which pass value from one page to another including followed 301 and Meta refresh links are under Equity-Passing links. I am surprising after looking at the links report generated by opensiteexplorer.org. Most of the article and directory links which have low DA and PA are under Equity-Passing links. Whereas websites like EzineArticle or Articlebase which have good DA and PA are not found in either Equity-passing links or under only nofollow category. Please suggest me if the report of Opensiteexplorer is not good enough or the links from the site like Ezine Article doesn’t pass the link equity. Thanks.
Link Building | | TopLeagueTechnologies0 -
Decent SERP site sending 1000's of links to your website?
I've spent most of this summer trying to clean up my link profile, most links I've never requested myself, they just appear. Here's a question, www.allworldlinks.com appear to have a decent page authority but they are bombarding my site with hundreds of links, I now have over 12,000 from them. This is not good I guess?
Link Building | | stevieroy0 -
Are links with space considered to be the same as links with %20?
I wonder if Google would consider those three links to be the same? http://www.example.com/test page.html http://www.example.com/test page.html http://www.example.com/test+page.html
Link Building | | lucek0 -
Ranking a specific inner page for a specific website
Hi, I'm new here and it's my first question. I'm not so new in SEO, the thing that I know now is google has changed its game plan. lol. My question is: I have a specific website (aged website but not well-optimized overall), and I want the inner page (with good on page optimization for a certain kw) to rank for the main kw that it's optimized for. How to do this these days? Should we build more kw to this page like usual? If yes, then what best practices to do it? thx guys
Link Building | | martino8880 -
I have created 5 model specific blog sites which deliver links to my core site.
I post about 500 words of unique relevant content weekly to each model blog site. Each week, seo smartlinks delivers keyword anchor text links to my core site with a 3% keyword density. I have been doing this for 3 months and my core site traffic is stagnant or slightly down. Is this a good practice since its relevant content, or am I writing for nothing? Also, am I in danger of over optimized anchor text?
Link Building | | SEOQuest720 -
There is a New link to my Site but I can see it on link report ?why ?
Hi I found out using link campaign and Open site explorer that my competitors where getting links from this page http://www.visitgreece.gr/en/activities/land_sports/golf So I conatc the admins and added our golf courses too Is the dunes and the bay course in the middle of the page But this happened 3 weeks ago and still this linking domain is not appaering in my campaign why is that any ideas ? does it take so much time to appera to SEOmoz ? Or the problem is because they are linking 2 diffrent sites ? my site is www.costanavarinogolf.com Thanks a lot in advance for your help
Link Building | | grzontan0