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
-
Inbound Links not showing. Links are not no follow
Over the past several months I have definitely received inbound links to my website ( none of which are no follow). I have HubSpot as well s Moz and none of the links are showing. My competitors with the same link sources are showing though. I am completely dumbfounded. Why are my inbound links not showing and how much time does it take for them to show if they show at all? Thank you!
Link Building | | NPatt0 -
When buying used domains, how do i see the links pointing to that domain? OSE not showing links
when buying used domains, how do i see the links pointing to that domain? Sometimes the open site explorer doesn't show any links to the domain, especially if the domain is parked. Obviously a domain for sale with 1000 domains linking to it has lots of SEO Value right? Thanks mozzers!
Link Building | | Ron100 -
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 -
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 -
Are the following considered bad links for Link Building.
I've been doing a lot of research lately on link building & I've read a lot about having a diverse amount of links. Social links, Blog links, comment links, footer links, No follow links, Directory links as well as links with Anchor text URL match, brand match, partial brand match, non-descriptive, and with keywords. But there is a lot of talk of removing those links that look like a site that's built just for link building purposes.... but Directories are basically built for link building are they not? I'm wondering if anyone can tell me if they feel links from the following directories would be bad links. (Non-Paid) http://www.yoganza.com http://www.wkool.com http://www.wee-directory.com http://www.voicelet.com www.hotfrog.ca http://www.webdirectorieslist.com http://multiplelistingboard.com http://mozdirectory.net http://freedirectorypr.info Industry specific below: http://bestautolinks .com http://automotivedome.com http://automobilebuzz.com http://craigsautolinks.com Thanks so much for the help!
Link Building | | DCochrane0 -
Back Link: Is LinkedIn keywords in profile good Link building strategy?
I distribute industrial products B2B with e commerce. I have a personal profile on LinkedIn. I listed the products I sell and I could have all my partners and associates list my web site on their profiles. Do search engines review LinkedIn personal profiles or company profiles and is it a good marketing strategy to have my web site, keywords, and my two largest selling products on LinkedIn?
Link Building | | Wales0 -
The quality of links is measured by website relevancy to my business?
In Open Site Explorer links are being valued with Domain Authority and page Authority. My question is if you measure somehow the relevancy of the website with the business of the website to which the links are going? I have learned that an important part of the value of links is the relevancy of the website with my business. I am seeing for example a link from a children website to a car related website as very much valued. I dont see very much relevancy with both so I wonder you take this into account.
Link Building | | ceesie0 -
Internal Linking for Newspaper Websites
Now, there are a number of do's and dont's when it comes to internal linking, but do those rules apply to news websites that have to interlink relevant news stories, primarily based on their relevancy to the user and the value that they have to provide rather than keeping the idea of page rank sculpting in mind? What's your take on this?
Link Building | | RishadShaikh590