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>
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
-
Should I create new content or outreach for links for a specific KW?
A few keywords my company would like to go after are: Mobile homes for sale Manufactured homes Mobile Home Dealers. The question is should we create unique content around these keywords then market it heavily in hopes to rank that new individual page / post OR should we just be doing outreach for back links and anchored text to link to our primary domain that is already much stronger with a 38 DA? Thoughts?
Link Building | | Cfarcher0 -
Google isn't crawling my website page
I have been trying to get indexed my inner page's title tag but still I cannot see this. It has been almost a week. I have done "Fetch as Google" even though I cannot see this. What can be the reason?
Link Building | | ksmith880 -
Nofollow links showing up in Google Search Console
If some nofollow links are showing up in Google Search Console, does that mean they are indeed passing link juice?
Link Building | | BrightonRecoveryCenter0 -
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 -
Is it better to link back to the root domain, or the specific page you're optimizing for?
I'm working on a project our site - building links for iPhone Repair. For the term "iphone repair miami" - is it more ideal to link to the root domain (xxx.com) or to the subpage that is about iPhone Repair (xxx.com/iphone-repair)? I would imagine the latter - but obviously that page has less authority than the root. Thanks!
Link Building | | preemo0 -
Does Google use link CTR as a factor?
Been wondering for a while if Google might be using CTR of links pointing your site? Anyone run any tests or have any clues?
Link Building | | Crunchii0 -
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 -
Which parameter does google value more: number of incoming links or on-page optimizations (meta data and keywords)?
I am just starting with the SEO and I have a client in the travel industry whose website is not ranked well on the search engines. After doing the seo audit we see that the website's on-page optimization (meta titles, meta description, meta keywords and h1, h2, etc tags) is bad. At the same time there are very few incoming links into the website. These are the key 2 issues we found. In order to proceed most effectively, what do you think would be more effective to focus on first? Doing the on-site optimization or focusing more on the link building? Do the search engines, in particular, google - weight more either of these parameters? thanks so much for all your advice! all the best egle
Link Building | | queenz0