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
-
Link building strategy - my weak link!
Please help me understand link building. I've read the articles on Moz, but they seem vague to me. Specific questions: 1. How do I get my webpage on good quality sites? 2. Guest blogging? Good or not? 3. What about when people pick up one of our blog stories and publish it on their site with a link back? Is that bad now because it is duplicate content??? 4. Forum posts with a link in the signature? Good or not? 5. Directories - I get it that these are no longer good... are they severely negative? Should I take them down. 6. PR - Looks like this is bad... right??? 7. Youtube - any value? 8. Pinterst, LinkedIn, Twitter, Facebook, Instagram? Any value to backlinks here? 9. What about sites like redit? 10. Anything else I should consider?
Link Building | | CalicoKitty20000 -
Do No follow links from social media platforms transfer authority or value when they link to third party websites?
With social media playing a bigger role in SEO (since the Panda, Penguin updates etc) and how search engines rank sites now, does anybody know why Twitter for instance has 'no follow' when I check my client's websites under 'inbound links' on Open Site Explorer?
Link Building | | caroline19770 -
Links from Real Estate Websites Link Page, Do or Don't?
It seems that real estate sites have at times been under heavier scrutiny from the search engines. But real estate agents get networking, which makes acquiring those links a little bit easier. Plus with localization of search, I think real estate sites may give off a good GEO scent. Should SEO's go for links from real estate websites? Does a reciprocal link devalue said links?
Link Building | | Thos0030 -
Inbound links from different subject websites
I have question regarding inbound links from different subject websites. We are selling home decor products on our website and getting links from different subject websites. I want to give more idea about it. I love cooking and write articles on recipes... My article will live on following website with my signature and signature will contain links to my website. http://allrecipes.com/ So, will it help to my website or not?
Link Building | | CommercePundit0 -
Does Google see this as an inbound link?
Hi, I'm looking at adding my site to a directory. It's highly relevant to my industry and has relatively good PA/DA. The external links on the directory uses some PHP code like the following: http://www.ThisDirectory.com/visit.php?i=3141635&url=http://www.ExternalDomain.com Obviously the links works as a redirect but they do not show up in OSE. Would Google count this link as an inbound link? Thanks,
Link Building | | Confetti_Wedding0 -
Is it possible to find the highest authority websites for links based on a specific search phrase?
I am trying to find high relevancy websites that would possibly help my ranking for a search term. Any suggestions?
Link Building | | dbowmanfl0 -
Porn link ...
I just ran https://www.majesticseo.com report for back links and showed me that I have one link at porn site ... not sure if it will be appropriate to post it here. The link was discovered on 03.05.11 and when I visited today link is not there... I dont know who put that link there. Can I get penalty for that from google? Can it be a mistake?
Link Building | | DiamondJewelryEmpire1 -
How do you find out what (and when) new websites are linking to your site?
I may be missing the obvious here, but is there any way (a programme or site) of seeing what new links come into your site? Obviously as anyone who works in SEO, I like to see which links we have got with the work we put in contacting webmasters, etc. But is there a better way than just manually looking through ALL the links? Any help will appreciated.
Link Building | | Weerdboil0