Does Commented HTML Code Get Spidered?
-
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?
-
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.
-
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.
-
It means the content between comment tags won't get spidered.
I'm sorry if I wasn't clear enough on my previous comment.
-
Does that mean the content between comment tags get spidered?
-
Crawlers ignore comment tags. They do not have any SEO impact.
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.
Related Questions
-
How do I hide comment reply's from google? Do I need to?
Reason for asking is Moz reports them as URL too long. Should these even be indexed by google if not, how do I hide them? Example URL : https://www.tansleyphotography.co.uk/farnham-castle-wedding-claire-chris/?reply-to=1876 This really doesn't need indexing, as it's just a comment on a blog post. Does it matter?
On-Page Optimization | | paultansley1 -
Site is too slow? Seeing a new code.
Site is too slow. I am seeing this new code more than 1000 times in my home page- What should I do now? My site- http://a1stlucie.com/
On-Page Optimization | | Beachflower0 -
Code Quality checker tool?
Hi All, I have seen one tool - http://nibbler.silktide.com/ which give code quality score and if we go for pro version it's name is sitebeam - http://nibbler.silktide.com/en_US/pro Can anyone share experience of this tool? Also any other tool you can suggest to check code quality of ecommerce site? Pls don't suggest manual checking. Thanks!
On-Page Optimization | | pragnesh96390 -
Duplicate Content aka 301 redirect from .com to .com/index.html
Moz reports are telling me that I have duplicate content on the home page because .com and .com/index.html are being seen as two pages. I have implemented 301 redirect using various codes I found online, but nothing seems to work. Currently I'm using this code. RewriteEngine On
On-Page Optimization | | omakad
RewriteBase /
RewriteCond %{HTTP_HOST} ^jacksonvilleacservice.com
RewriteRule ^index.html$ http://www.jacksonvilleacservice.com/ [L,R=301] Nothing is changing. What am I doing wrong? I have given it several weeks but report stays the same. Also according to webmasters tools they can't see this as duplicate content. What am I doing wrong?0 -
Would a free PDF download diminish SEO benefits of HTML content?
Dear readers, This post is a duplicate of one I just put up. Sorry about that. If you are interested in commenting or seeing other responses, please go to http://moz.com/community/q/would-a-free-pdf-download-diminish-seo-benefits-of-html-content. Thanks. Hello, I am doing SEO for a company that, as a sideline business, sells four books written by the principals; the content is directly relevant to the company's primary business focus. Book sales are a tiny fraction of our overall revenue, and we don't expect that to change, although we will continue to sell the books. In addition to selling them, we have decided to convert the books to HTML and post them for free on our website (laid out by chapter and section). The hope is that this will result in goodwill, links, traffic, and ultimately improved search rankings. My question: Would offering free PDF downloads of the books (in addition to posting the HTML content) diminish the SEO benefits of the HTML content? If we don't offer the PDF option, people would have to visit our site to read the content (unless they bought a hard copy). If visitors were able to download a free PDF, they wouldn't need to return to our site to read it. If our corporate clients (nearly all of our clients are corporations) could download a PDF, they could then post it on an intranet instead of posting a link to our site. In general, do you think a visitor would be less likely to link to our site if he or she were able to download the PDF? Or would the appeal of the PDF option make it more likely that people would visit and link to the site? Also, if we offer the PDF option, are there any SEO issues related to duplicate content? Finally, if we did offer the free PDF download, would you recommend that we ask for an email address before giving the PDF? Thank you very much!
On-Page Optimization | | nyc-seo0 -
I have 2 canonical links. Must get rid of one?
On my wordpress blog, i have 2 canonical links for every single post, like this: One is generated by wordpress theme: rel='canonical' href='http://site.com/article-title/' /> The other one is generated by AllinOne seo pack: <link rel="<a class="attribute-value">canonical</a>" content="<a class="attribute-value">http://site.com/article-title/</a>" /> I tried to remove one of them, but if i uncheck from AllinOne, the source code is the same. Also, on-page analysis from SeoMoz tells me that i need only one canonical link. I don't have errors in Google Webmater Tools. What should I do?
On-Page Optimization | | Vladone800 -
Telephone numbers on page getting classed as 404s by SEOMoz
Hi there, I have a number of clients who have their telephone numbers on their sites (understandably of course!) and SEOmoz is classing them as links and therefore a 404 in the crawl software. The protocol is added in the code so if viewing the page on a mobile you can call the client. Should I be doing anything else? Webmaster does not pick these up as 404s so I am wondering if this is an SEOmoz bug or that I should be adding a no-follow? Thanks jT
On-Page Optimization | | Switch_Digital0 -
Is it possible to get good SEO results with small brochure websites?
Say I have a 5 page website with 300 words and 4 images on each page. No or little dynamic content. No blog. Is it still possible to get good SEO results in a site like this? what would be the best strategy? what challenges would I need to over come? or is it just too much of an up hill battle?
On-Page Optimization | | iSenseWebSolutions0