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. Technical SEO Issues
    4. Cantags within links affect Google's perception of them?

    Cantags within links affect Google's perception of them?

    Technical SEO Issues
    9 4 2.1k
    • 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.
    • debi_zyx
      debi_zyx last edited by

      Hi, All!

      This might be really obvious, but I have little coding experience, so when in doubt - ask...

      One of our client site's has navigation that looks (in part) like this:

      <a <span="">href</a><a <span="">="http://www.mysite.com/section1"></a>

      <a <span="">src="images/arrow6.gif" width="13" height="7" alt="Section 1">Section 1</a><a <span=""></a>

      WC3 told us the

      tags invalidate, and while I ignored most of their comments because I didn't think it would impact on what search engines saw, because thesetags are right in the links, it raised a question.

      Anyone know if this is for sure a problem/not a problem?

      Thanks in advance!

      Aviva B

      1 Reply Last reply Reply Quote 0
      • Andy.Drinkwater
        Andy.Drinkwater last edited by

        To be honest, I can't see, from an SEO perspective, how Google would view these in a negative way. I can only tell you that from all of the sites that I have seen, I have never seen this as a problem.

        Someone else might come up with a definitive answer, but I would say that there is nothing wrong with

        tags for SEO.

        Cheers,

        Andy

        debi_zyx 1 Reply Last reply Reply Quote 0
        • debi_zyx
          debi_zyx @Andy.Drinkwater last edited by

          Thanks, Andy.  You've seen sites that have used the tags the same way?

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

            The problem with using invalid code is every browser may handle it differently. Even if your current browser handles it fine today, the next time it updates the results may change.

            Code validation is representatives from all the major browsers getting together and agreeing on coding rules. The biggest problem with invalid code is people thinking their site is fine but then later finding out (or worse not finding out) their site does not appear correctly in various browsers.

            You have ie6, ie7, ie8, ie9, ie10, Chrome, FF, Opera, Safari and other browsers on the market. You have a variety of phones, ipads and other devices. It is more important then ever to use valid code. If your page doesn't fully validate, it should still be almost valid and the couple errors which remain have been thoroughly researched and you consciously choose to not validate on those particular items. An example would be if you are using HTML 5 and the validation tool has not fully been updated for all the latest changes.

            With the above noted, I am not aware of any problem with your code. The challenge is since it is not valid, you cannot predict how it will be handled by Google. Even if it is handled correctly today, a change can be made at any time which can impact you.

            debi_zyx 1 Reply Last reply Reply Quote 1
            • kchandler
              kchandler last edited by

              Simply from a front-end development perspective, why would you place a

              inside of an <a>? If you are trying to force a block element style, why not simply apply it through the CSS sheet to the</a> <a>tag?

              If you supply a URL i can give more specific coding advice 🙂

              Thanks - Kyle</a>

              debi_zyx 1 Reply Last reply Reply Quote 0
              • debi_zyx
                debi_zyx @kchandler last edited by

                Thanks, Kyle.  We're not the design/webmaster team, so while it might not have been a good idea to do that in the first place, our job here is just to tell our client what MUST change for SEO and what doesn't need to change, even though it might not have been ideal.  The challenges of not having unlimited budget...

                Thanks,

                Aviva

                1 Reply Last reply Reply Quote 0
                • debi_zyx
                  debi_zyx @RyanKent last edited by

                  Thanks, Ryan.  Point well taken.  I think I may copy and paste this for the client in question.  If they would have to pay a significant amount of money to have it redone, though, would it be worth it in this kind of case?  What would the odds be?

                  Aviva

                  RyanKent debi_zyx 2 Replies Last reply Reply Quote 0
                  • RyanKent
                    RyanKent @debi_zyx last edited by

                    If they would have to pay a significant amount of money to have it redone, though, would it be worth it in this kind of case?  What would the odds be?

                    Without having any information about the site, it's not possible to offer any credible details, odds or measurements of worth. If you are asking for a guess, I would say it is very unlikely for the div tags to cause any SEO problems, but that's the problem with invalid code, you don't know how it will be handled.

                    The bigger concern I have is if that line of code was coded so poorly, there are likely other coding issues with the site.

                    May I suggest asking a couple developers for an estimate on how much it would adjust the site's code so it validates?

                    1 Reply Last reply Reply Quote 1
                    • debi_zyx
                      debi_zyx @debi_zyx last edited by

                      Thanks, Ryan.  Good ideas, and we'll see what "the authorities" choose to do.

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      • First post
                        Last post
                      • How to use Google search console's 'Name change' tool?
                        cmscss
                        cmscss
                        0
                        4
                        67

                      • No confirmation page on Google's Disavow links tool?
                        Vizergy
                        Vizergy
                        0
                        4
                        322

                      • 404's in WMT are old pages and referrer links no longer linking to them.
                        sprynewmedia
                        sprynewmedia
                        0
                        3
                        597

                      • Google is somehow linking my two sites that aren't linked! HELP
                        jenmcardle
                        jenmcardle
                        0
                        4
                        601

                      • Will changing our colocation affect our site's link juice?
                        EGOL
                        EGOL
                        0
                        2
                        412

                      • Url's don't want to show up in google. Please help?
                        RyanKent
                        RyanKent
                        0
                        5
                        587

                      • Do any short url's pass link juice? googles own? twitters?
                        bozzie311
                        bozzie311
                        0
                        2
                        764

                      • If two links from one page link to another, how can I get the second link's anchor text to count?
                        RyanKent
                        RyanKent
                        0
                        2
                        720

                      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