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
-
Why are bit.ly and ow.ly links showing up as Inbound Links?
Hello! I noticed this question was asked a while back (around 2013 i think), but I still don't quite understand why I'm seeing these shortened URLs come up as Inbound Links? Can someone please explain? Thanks,
Link Building | | txwildcard
Carlos0 -
How can create links of our website on . edu and .gov sites?
I want to create links on .edu & .gov sites for my website . So, what kind of activities we will do for this process and how? Can you also provide list of .edu and .gov sites for create backlinks?
Link Building | | surabhi60 -
Links Removed from Site but not Google Webmaster Tools
I have a new client who has been fighting to get past an unnatural links penalty. One of the biggest reasons behind it was that they paid to get a followed link/ad on a blog network, well this ad ended up being a site wide link which ended up giving them thousands of back links within a few days. After getting the owner of the blog network to remove the link i manually spot checked a handful of pages and used screaming frog to crawl looking for a link referencing their site. From what i can tell they are all gone. However they are still in Google Webmaster Tools as well as Google's index and it has been a couple months since they have been removed. Does anyone have any advice on getting them removed from Google's entities even though they are already off of the website? Thank you in advance,
Link Building | | kchandler
Kyle0 -
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 -
Is link exchange a reliable source to get back links?
I read a latest post on seomoz that _“Do not buy or exchange link with anyone who contacts you. This is completely against Google's policies and if they were to find out, you could be penalized." So I went through Google's ''Link Schemes'' and found that ''Excessive link exchanging ("Link to me and I'll link to you")'' can negatively impact a site's ranking . _ So is it the ''excessive'' link exchanging that can cause a negative impact? Exchanging links with good quality, cached sites (without excessive doing) can do good or bad? Can anyone please explain to me in detail?
Link Building | | semvibe0 -
JavaScript is crawled by search engines, isn’t it? Does it mean that links embedded in JavaScript pass link juice?
I wonder If links embedded in JavaScript from an external Website pass link juice to the linked page and thus have a positive effect on google rankings. I read that JavaScipt is craweld. Does it mean that also the link juice is passed? I'm looking forward to your answers.
Link Building | | Tabea0 -
Link building for rankings VS Link building for relationships
A Big Shout To Everyone -- Good Morning and What's Up 🙂 As I read today through seomoz professional guide to link building and the section why link building matters and in addition to this a newsletter I received today that changed my whole thinking towards link building for rankings vs for relationships. It is already happening on social networks if you are active there, but what about on your website. What are your thoughts on the following ? Google's job is provide the most relevant results to surfers online, and looking the link profile of a site & the page itself is the key to determining which page to serve on plate to the surfers link query ! Webmasters Site Objective:
Link Building | | helpwanted
I think that we as webmasters have to ask ourselves what do we want to achieve with link building. To get quick traffic or build slow authority links, high rankings, lead generation, sales & other things here I may be missing etcccc Other Objective Networking & Relationship Building Alliances : What I discovered today is that building links for 1st page rankings are great and will provide me with steady traffic, but not all of it is targeted traffic, but what else can I do to bring targeted traffic and at the same time try to build alliances with other related non competing business owners online. The idea... is to apply old school networking / relationship building alliances to get targeted traffic to my site that can actually benefit from my services. How Do We Achieve This I become a editor for approving resource links for me site, only the best will be placed on my site as a resource. Build a valuable tightly themed categorized resource section with related non competing resources that can help my sites visitors find what they are looking for, send visitors to non competing resources that may purchase their services which helps me build a relationship with them, and may can with rankings as well, provided I am selective with my qualification process. Questions & Concerns Below : What should I be thinking about when creating a resource categorized links page How many outgoing do follow links should I allow from this links partner page How will this links resource page affect my own SE 1st Page Rankings and is it worth it based on getting targeted traffic Any pros / cons I may be missing here0 -
Google dosent care that much about links lately?
Google dosent care that much about links lately or crawl started beeing more intelegent about it? Do you feel any changes?
Link Building | | DiamondJewelryEmpire0