The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Link Building
    4. In order for Google to recognize a hyper-link on your website, does it have to be written in a specific java script?

    In order for Google to recognize a hyper-link on your website, does it have to be written in a specific java script?

    Link Building
    4 2 47
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Greg_Barnhardt
      Greg_Barnhardt last edited by

      Does it have to read as the following script?

      KBB 2018 Best Buy Overall Winner

      1 Reply Last reply Reply Quote 0
      • effectdigital
        effectdigital last edited by

        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>

        • <a></a>https://www.w3schools.com/tags/tag_a.asp

        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>

        1 Reply Last reply Reply Quote 1
        • Greg_Barnhardt
          Greg_Barnhardt last edited by

          Thank you, that was extremely insightful and  helpful.

          1 Reply Last reply Reply Quote 0
          • effectdigital
            effectdigital last edited by

            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

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • Google isn't recognizing links to my site. help
              Nigel_Carr
              Nigel_Carr
              0
              9
              95

            • What is the importance of root domains linking to your website in Google's rankings? I notice our competition has a much higher number on keywords I'm analyzing. Thank you!
              mjfinet
              mjfinet
              0
              3
              100

            • Does Google Groups and Google Community links count?
              Hannah_Smith
              Hannah_Smith
              0
              3
              576

            • If i get link pointing to a specific page , will that link add up to the count of linking root domains too ?
              RobMay
              RobMay
              1
              4
              81

            • Ranking a specific inner page for a specific website
              TakeshiYoung
              TakeshiYoung
              0
              2
              95

            • Is there a tool available to identify whether you already have a link for a specific blog/website?
              Martijn_Scheijbeler
              Martijn_Scheijbeler
              0
              2
              652

            • Will redirecting 250 linking domains to a new website from an old website freak Google out?
              5outhpaw
              5outhpaw
              0
              5
              601

            • Asking other websites to link your website when the want to be in your directory
              RyanKent
              RyanKent
              0
              3
              795

            Get started with Moz Pro!

            Unlock the power of advanced SEO tools and data-driven insights.

            Start my free trial
            Products
            • Moz Pro
            • Moz Local
            • Moz API
            • Moz Data
            • STAT
            • Product Updates
            Moz Solutions
            • SMB Solutions
            • Agency Solutions
            • Enterprise Solutions
            • Digital Marketers
            Free SEO Tools
            • Domain Authority Checker
            • Link Explorer
            • Keyword Explorer
            • Competitive Research
            • Brand Authority Checker
            • Local Citation Checker
            • MozBar Extension
            • MozCast
            Resources
            • Blog
            • SEO Learning Center
            • Help Hub
            • Beginner's Guide to SEO
            • How-to Guides
            • Moz Academy
            • API Docs
            About Moz
            • About
            • Team
            • Careers
            • Contact
            Why Moz
            • Case Studies
            • Testimonials
            Get Involved
            • Become an Affiliate
            • MozCon
            • Webinars
            • Practical Marketer Series
            • MozPod
            Connect with us

            Contact the Help team

            Join our newsletter
            Moz logo
            © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
            • Accessibility
            • Terms of Use
            • Privacy