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. Does Commented HTML Code Get Spidered?

    Does Commented HTML Code Get Spidered?

    On-Page / Site Optimization
    6 4 958
    • 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.
    • lbohen
      lbohen last edited by

      I have a change, perhaps temporary, to my web store that I will be making. I am wondering if the code that I will comment out () gets spidered?

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

        Crawlers ignore comment tags. They do not have any SEO impact.

        lbohen 1 Reply Last reply Reply Quote 1
        • lbohen
          lbohen @Eblan last edited by

          Does that mean the content between comment tags get spidered?

          Eblan 1 Reply Last reply Reply Quote 0
          • Eblan
            Eblan @lbohen last edited by

            It means the content between comment tags won't get spidered.

            I'm sorry if I wasn't clear enough on my previous comment.

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

              There is a possibility that Google will crawl a link in comments, it's happened before with comments in Javascript. However, it will not have any impact at all from an SEO perspective.

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

                Hi Larry, that was a great question. This is why I love SEOMoz.org, there is always something to learn. I had never thought seriously about this question before, as I web developer I just figured it if I commented out html I didn't have to worry about it being crawled. After reviewing the responses I can see there may be a tad more to it then that.

                Good question, good responses.

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                • Changing commenting platforms...will deleting old comments hurt SEO?
                  max.favilli
                  max.favilli
                  0
                  3
                  455

                • # code not detected
                  Linda-Vassily
                  Linda-Vassily
                  0
                  4
                  918

                • Google Map Marker not showing up when using HTML Embed Code
                  0
                  1
                  503

                • Do Search Engine Spiders Read Commented Out Content?
                  TakeshiYoung
                  TakeshiYoung
                  0
                  3
                  298

                • I have a duplicate URL from example.html to example without .html
                  MickEdwards
                  MickEdwards
                  0
                  7
                  234

                • How To Get Started?
                  KeriMorgret
                  KeriMorgret
                  0
                  5
                  157

                • I think my site's HTML is good but I get 22 Invalid markup erros?
                  DanDeceuster
                  DanDeceuster
                  0
                  5
                  535

                • I changed my site from HTML to PHP and I need to get some help.
                  TrendyHost
                  TrendyHost
                  0
                  4
                  555

                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