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
-
Effects of a bad link linking to a image
i am getting a lot of links from wallpapers sites.. One person has created 1000's of similar sites that are linking back to my images. My guess is images do not pass link value positive or negative. But I am not sure what the potential effects would be. Does anyone know who linking to images might effect SEO especially when there coming from horribly low quality auto generated sites.
Link Building | | KentH0 -
What can i do about link threaths like these? What does Google do abt these?
I asked for links removal and it turned into a threat now see below. Can i do anything abt these? Can google protect us from these? Where can i let google know - my site is already penalized and only showing up for my brand in google 😞 I have deleted the email threads from here - contact me if you want me to send those so you can see them
Link Building | | CMTM0 -
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 -
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 -
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 improve (ASAP) the linking root domain, the followed linking root domains and the linking C-Blocks? Linkbuilding (or whatever) techniques.
I have a small site (.com) like any website in my sector. 30-90 pages. I have no crawls errors. Everythings is fine, just I need to improve my linking root domain, the followed linking root domain and the linking C-Blocks. Example: my competitors have 300 (one of them have 1300) of total links. I have 30. Anyone know some good strategies? techniques? tips? I just dont want to be in a farm directory, I want free links. I'm already running two strategies but it works so slowly. I want something faster at this moment. Also, any recommendation will be thankful.
Link Building | | NicoDavila0 -
What are the most valuable links a new website can get?
When you are starting an SEO project for a new website (or an old one with few or worthless links) where to you start? What are your basic "get the link building started" link sources?
Link Building | | DGSEO0