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. Help fixing errors on W3C

    Help fixing errors on W3C

    Link Building
    5 4 249
    • 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.
    • lalita123
      lalita123 last edited by

      I’ve got some errors while checking my website on W3C, one of those is:

      Error Line 8, Column 46: Duplicate attribute class.

      <code class="input">…lass="schanger" rel="stylesheet" class**=**"changer" href="http://www.simon-hot-do…
      
      Please anybody could tell me how to fix it, thanks
      
      Lunita</code>
      
      1 Reply Last reply Reply Quote 0
      • stevenzussino
        stevenzussino last edited by

        The class property is duplicated.

        You can only have one class in an href tag.

        lalita123 1 Reply Last reply Reply Quote 0
        • lalita123
          lalita123 @stevenzussino last edited by

          Thanks Steve, but how I can fix it, I'm new and I feel lost.

          CMC-SD 1 Reply Last reply Reply Quote 0
          • MattAntonino
            MattAntonino last edited by

            You have these two lines:

            | class="schanger" rel="stylesheet" class="changer" href="http://www.simon-hot-dogs.com/wp-content/themes/feast/styles/orange.css" type="text/css" /> |
            |

            | <link class="bchanger" rel="stylesheet"class="changer" href="<a class=" " href="http://www.simon-hot-dogs.com/wp-content/themes/feast/styles/brown.css" target="_blank">http://www.simon-hot-dogs.com/wp-content/themes/feast/styles/brown.css"type="text/css" /></link class="bchanger" rel="stylesheet"class="changer" href="<a> |

            |
            |

            You need to edit the files to remove the class="changer" from both.  schanger and bchanger seem to be your specific "changer" classes - you can't then say "it's also class=changer"  It just doesn't work.

            Just sort out those link class codes and you'll be fine.

            1 Reply Last reply Reply Quote 1
            • CMC-SD
              CMC-SD @lalita123 last edited by

              Do you know HTML? If not, the W3C stuff isn't going to be any use to you and you need to hire someone.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • Are these links helping
                Paddy_Moogan
                Paddy_Moogan
                0
                3
                76

              • External Ranking Help
                MattRoney
                MattRoney
                0
                3
                74

              • How to fix algo penalty
                NakulGoyal
                NakulGoyal
                0
                3
                112

              • Help I have spam backlinks on my site and I am trying to remove them. Can someone please help me.
                Dr-Pete
                Dr-Pete
                0
                17
                1.5k

              • Are my affiliates helping or harming me?
                stereo69
                stereo69
                0
                2
                262

              • Infographic help
                supermarketonline
                supermarketonline
                0
                4
                339

              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