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. On-Page / Site Optimization
    4. # code not detected

    # code not detected

    On-Page / Site Optimization
    4 4 918
    • 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.
    • kevinbp
      kevinbp last edited by

      Hi guys, my H1 code is like but Yoast SEO and Google Page Speed keeps saying that i do not have a H1 tag in my website, Is my code wrong?

      Keyword | Keyword2

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

        I am pretty sure it has to with the

        tag, try the W3C Tool: http://validator.w3.org/#validate_by_input

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

          Can you provide the URL?

          Grobro is most likely right. If you have an opening

          tag before your

          tag, the closing

          should be after your closing .

          1 Reply Last reply Reply Quote 0
          • Linda-Vassily
            Linda-Vassily last edited by

            You have a inside the

            but not thethat it is closing. That is just to start. The rest of that code needs cleanup and is mostly unnecessary--you wouldn't need two spans; the letter-spacing has no value, etc.

            What is best is to properly define the h1 in the CSS and then use

            Your Page Title

            .

            If you need to modify the h1 (maybe it is defined for a group of pages and on this particular page you want something a little different), do it as simply as possible. (The span attributes in your example probably would not do anything, assuming a white background, though that depends on how the class google-mixed, is defined...)

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            • First post
              Last post
            • Social engineering Content detected
              iepl2
              iepl2
              0
              6
              55

            • Should I Use A Code For Last Updated Blog Posts
              0
              1
              31

            • How to check code to text ratio of Mobile Site?
              KristinaKledzik
              KristinaKledzik
              0
              5
              87

            • Redirect Code Needed.
              donford
              donford
              0
              2
              102

            • W3C code errors
              JarnoNijzing
              JarnoNijzing
              0
              2
              92

            • Broken links detected by SEOMOZ
              Robert_G
              Robert_G
              0
              6
              153

            • Does Commented HTML Code Get Spidered?
              donford
              donford
              0
              6
              958

            • Html code for none .index
              mato
              mato
              0
              7
              481

            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