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
-
Do many nofollow links from one website will hurt my website SEO?
Do many nofollow links from one website will hurt my website SEO? Please let me know. I am getting about 20 thousand UGC links from a news website after I posted one comment on an article. Please suggest asap.
Link Building | | mikeeb_50150 -
Grr SEO linking.. I am not understanding why I wouldn't have lots more links.. Please help. Thanks
I have done the whole moz open exploer and I am not understanding why my site wouldn’t have more links registering to my website.. I have lots of sites(directorys and 3rd party) with my website domain in them. The only one that is linking to my site is BBB.com and my advertsing with saint paul press. www.somerersetautodealer.com But if I have links with all kinds of automotive directories why wouldn’t they register? I am sure this a simply answer or that I am not understanding something. Thanks for your help! Scott
Link Building | | Scott12340 -
When link building yourself where would you advise are the best places to add links?
Hi I am not having much success with SEO companies so am looking at link building and doing SEO myself. Where would you advise are the best places to add links? Also is it better to add links to specific pages or just to the home page? Thanks in advance
Link Building | | Briggzy0 -
How can I find all the outbound links from a website domain?
I want to find all the outbound links (basically whatever comes in <a>tag) from a domain (say www.abc.com) as well as all the subdomains under it (say abc.com/a etc). Open Site Explorer provides the inbound links from a website but does not provide any functionality to get all the outbound links from a website. Is it possible to do?</a> <a>Thanks in advance. Deepak Jain</a>
Link Building | | Deepak_Jain0 -
Does the twitter link shortening service reduce link value (strength).
We have many SEO team members that use Twitters link shortening service, will this reduce the strength or value of the page to be indexed? I ask this cause the displayed URL isn't the actual page it is going to and would like to make appropriate changes to improve our company's SEO For example: http://t.co/zHu8vIcjPx is going to page http://4wheelonline.com/atv/QuadBoss.107503 Thank you for your assistance.
Link Building | | WebRiverGroup0 -
How might Google differentiate between an artificial link exchange and partners linking to each other?
Hi, All! Artificial link exchanges (contacting a vaguely connected site and requesting to exchange links to increase your PR) is, as far as I know, considered an outdated, not-so-smart technique, as Google might devalue them. Yet, for real business partners to exchange links seems to be an entirely accepted and encouraged technique. While that would be intuitive to a human who's viewing the pages. how might Google detect when two sites that link to each other are linking because they are trusted business associates (valuable) as opposed to when they are doing a link exchange (devalued)? Thanks! Aviva
Link Building | | debi_zyx0 -
Link Building: Asking for links versus building links
I am currently delving into link building for SEO having started out from a social media marketing side. From that angle, it was always my belief building high quality links came from engaging targeted bloggers and sites in my market and related verticals for product reviews and/or providing expert advise and opinion for posts they are creating. As I am learning more the "technical" side of SEO, I've read a lot of posters on here talk about asking from links from websites. While I get the concept from a strategic stand point, are links really asking for or is better to continue to pursue the long term investment of pitching to get coverage from well known bloggers and sites?
Link Building | | joshuaopinion1 -
Does google extract out keywords from links that use the url as the anchortext?
If someone formats a link like so: http://www.somedomain.com/keyword1-keyword2/keyword3.php Would you still get a similar anchor text benefit to this link as if it was formated like so: somedomain keyword1 keyword2 keyword3 what i mean is, does google extract out keywords from links that use the url as the anchortext?
Link Building | | adriandg0