undefined
Skip to content
Moz logo Menu open Menu close
  • Products
    • Moz Pro
    • Moz Pro Home
    • Moz Local
    • Moz Local Home
    • STAT
    • Moz API
    • Moz API Home
    • Compare SEO Products
    • Moz Data
  • Free SEO Tools
    • Domain Analysis
    • Keyword Explorer
    • Link Explorer
    • Competitive Research
    • MozBar
    • More Free SEO Tools
  • Learn SEO
    • Beginner's Guide to SEO
    • SEO Learning Center
    • Moz Academy
    • SEO Q&A
    • Webinars, Whitepapers, & Guides
  • Blog
  • Why Moz
    • Agency Solutions
    • Enterprise Solutions
    • Small Business Solutions
    • Case Studies
    • The Moz Story
    • New Releases
  • Log in
  • Log out
  • Products
    • Moz Pro

      Your all-in-one suite of SEO essentials.

    • Moz Local

      Raise your local SEO visibility with complete local SEO management.

    • STAT

      SERP tracking and analytics for enterprise SEO experts.

    • Moz API

      Power your SEO with our index of over 44 trillion links.

    • Compare SEO Products

      See which Moz SEO solution best meets your business needs.

    • Moz Data

      Power your SEO strategy & AI models with custom data solutions.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Free SEO Tools
    • Domain Analysis

      Get top competitive SEO metrics like DA, top pages and more.

    • Keyword Explorer

      Find traffic-driving keywords with our 1.25 billion+ keyword index.

    • Link Explorer

      Explore over 40 trillion links for powerful backlink data.

    • Competitive Research

      Uncover valuable insights on your organic search competitors.

    • MozBar

      See top SEO metrics for free as you browse the web.

    • More Free SEO Tools

      Explore all the free SEO tools Moz has to offer.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Learn SEO
    • Beginner's Guide to SEO

      The #1 most popular introduction to SEO, trusted by millions.

    • SEO Learning Center

      Broaden your knowledge with SEO resources for all skill levels.

    • On-Demand Webinars

      Learn modern SEO best practices from industry experts.

    • How-To Guides

      Step-by-step guides to search success from the authority on SEO.

    • Moz Academy

      Upskill and get certified with on-demand courses & certifications.

    • SEO Q&A

      Insights & discussions from an SEO community of 500,000+.

    Unlock flexible pricing & new endpoints
    Moz API

    Unlock flexible pricing & new endpoints

    Find your plan
  • Blog
  • Why Moz
    • Small Business Solutions

      Uncover insights to make smarter marketing decisions in less time.

    • Agency Solutions

      Earn & keep valuable clients with unparalleled data & insights.

    • Enterprise Solutions

      Gain a competitive edge in the ever-changing world of search.

    • The Moz Story

      Moz was the first & remains the most trusted SEO company.

    • Case Studies

      Explore how Moz drives ROI with a proven track record of success.

    • New Releases

      Get the scoop on the latest and greatest from Moz.

    Surface actionable competitive intel
    New Feature

    Surface actionable competitive intel

    Learn More
  • Log in
    • Moz Pro
    • Moz Local
    • Moz Local Dashboard
    • Moz API
    • Moz API Dashboard
    • Moz Academy
  • Avatar
    • Moz Home
    • Notifications
    • Account & Billing
    • Manage Users
    • Community Profile
    • My Q&A
    • My Videos
    • Log Out

The Moz Q&A Forum

  • Forum
  • Questions
  • Users
  • Ask the Community

Welcome to the Q&A Forum

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

  1. Home
  2. SEO Tactics
  3. On-Page Optimization
  4. Does Commented HTML Code Get Spidered?

Moz Q&A is closed.

After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.

Does Commented HTML Code Get Spidered?

On-Page Optimization
4
6
2.2k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as question
Log in to reply
This topic has been deleted. Only users with question management privileges can see it.
  • lbohen
    lbohen last edited by Jan 31, 2013, 8:37 PM

    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
    • donford
      donford last edited by Feb 1, 2013, 12:12 AM Feb 1, 2013, 12:11 AM

      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
      • TakeshiYoung
        TakeshiYoung last edited by Jan 31, 2013, 10:53 PM Jan 31, 2013, 10:53 PM

        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
        • Eblan
          Eblan @lbohen last edited by Jan 31, 2013, 10:30 PM Jan 31, 2013, 10:28 PM

          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
          • lbohen
            lbohen @Eblan last edited by Jan 31, 2013, 9:15 PM Jan 31, 2013, 9:15 PM

            Does that mean the content between comment tags get spidered?

            Eblan 1 Reply Last reply Jan 31, 2013, 10:28 PM Reply Quote 0
            • Eblan
              Eblan last edited by Jan 31, 2013, 9:08 PM Jan 31, 2013, 9:07 PM

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

              lbohen 1 Reply Last reply Jan 31, 2013, 9:15 PM Reply Quote 1
              • 1 / 1
              1 out of 6
              • First post
                1/6
                Last post

              Got a burning SEO question?

              Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


              Start my free trial


              Browse Questions

              Explore more categories

              • Moz Tools

                Chat with the community about the Moz tools.

              • SEO Tactics

                Discuss the SEO process with fellow marketers

              • Community

                Discuss industry events, jobs, and news!

              • Digital Marketing

                Chat about tactics outside of SEO

              • Research & Trends

                Dive into research and trends in the search industry.

              • Support

                Connect on product support and feature requests.

              • See all categories

              Related Questions

              • laurentjb

                How do I carry out a redirect? Is there a code I need to use?

                redirect redirect chain

                How do I carry out a redirect? Is there a code I need to use? Thank you in advance.

                On-Page Optimization | Oct 1, 2024, 12:15 AM | laurentjb
                0
              • Kevin_P

                When Google rewrites a title tag, do you get the SEO impact for the original version?

                title tags on page optimization on-page meta data meta tags

                Let's say you're writing a homepage title tag like this: KEYWORD | BRAND and Google rewrites it as BRAND | KEYWORD From Moz and best practices, we believe that keywords closer to the beginning of a title tag may have more impact on search rankings. So, when Google rewrites the title tag, do you get the impact you would have made with the keyword being closer to the front? Or, does Google give you the impact you would have received with the keyword being at the end?

                On-Page Optimization | Mar 12, 2023, 6:59 AM | Kevin_P
                0
              • dreservices

                How to fix duplicate content for homepage and index.html

                Hello, I know this probably gets asked quite a lot but I haven't found a recent post about this in 2018 on Moz Q&A, so I thought I would check in and see what the best route/solution for this issue might be. I'm always really worried about making any (potentially bad/wrong) changes to the site, as it's my livelihood, so I'm hoping someone can point me in the right direction. Moz, SEMRush and several other SEO tools are all reporting that I have duplicate content for my homepage and index.html (same identical page). According to Moz, my homepage (without index.html) has PA 29 and index.html has PA 15. They are both showing Status 200. I read that you can either do a 301 redirect or add rel=canonical I currently have a 301 setup for my http to https page and don't have any rel=canonical added to the site/page. What is the best and safest way to get rid of duplicate content and merge the my non index and index.html homepages together these days? I read that both 301 and canonical pass on link juice but I don't know what the best route for me is given what I said above. Thank you for reading, any input is greatly appreciated!

                On-Page Optimization | Jul 20, 2018, 9:38 PM | dreservices
                0
              • Sammyh

                Do you need to include the top menu on every single page of the site in the code?

                When using     cache:     on google, and clicking on Text-only version, our site has the top menu gibberish on top? My feeling is that this take away SEO juice from our title and focus keyword. Our website is culinarydepotinc.com

                On-Page Optimization | Jun 21, 2018, 8:40 PM | Sammyh
                1
              • bsharath

                Is Disqus comments useful as per SEO?

                Is Disqus comments useful as per SEO? We have some comments on each of our pages and its time taking to moderate them, so wanted to know if its beneficial in any ways for SEO?

                On-Page Optimization | Aug 4, 2016, 2:47 PM | bsharath
                0
              • momof4

                "translation" of code in htaccess file

                Hi everyone! I am a newbie to the whole SEO and html thing and I am trying to get a better understanding of the "behind the scenes" part of my website. I hope I can find someone here who can translate a piece of code for me that I have in my htaccess file: Options -Multiviews
                Options +FollowSymLinks
                rewritecond $1 !^(index.php|public|tmp|robots.txt|template.html|favicon.ico|images|css|uploads)
                rewritecond %{REQUEST_FILENAME} !-f
                rewritecond %{REQUEST_FILENAME} !-d
                rewriterule ^(.*)$ index.php?link=$1 [NC,L,QSA] I know that something is getting redirected to the index file, but what (or when) exactly? Does the word "robots"mean that search engine crawlers are getting redirected here? And is this good or bad (in terms of  SEO)? Or is this redirecting people who try to get to my robots/ template or image files?? Thanks in advance for any answers!

                On-Page Optimization | Sep 8, 2014, 9:45 PM | momof4
                0
              • StoryScout

                Page Title & Meta Description Getting Cut Off In The SERPs

                Hi Guys, I am trying to figure out why my page titles and meta d tags are getting cut off in Goofle SERPS. My page titles are 70 characters or under (including spaces) and my meta Dd's are 155 characters or under (including spaces) so I cannot work out why They are getting cut off. Is there something I have missed?! Thanks, Meaghan

                On-Page Optimization | Apr 21, 2014, 5:59 PM | StoryScout
                0
              • MichaelWeisbaum

                Page title getting cut off in SERPS even though it's under 70 characters?

                I re-wrote the page title of a home page for a site I'm working on and made sure it's under 70 characters (68 to be exact) to comply with best practices and make sure it doesn't get cut-off in the SERPS.  It's still getting cut-off though and right when it gets to the brand/website name.  Does a "-" have anything to do with it?  Does that translate to an elipsis? Format: keywords - website/brand.com Can anybody tell me why this would be happening?

                On-Page Optimization | Sep 15, 2011, 1:16 PM | MichaelWeisbaum
                0

              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
              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 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
              • Accessibility
              • Terms of Use
              • Privacy

              Looks like your connection to Moz was lost, please wait while we try to reconnect.