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.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
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
-
Built Responsive Website but only get mobile view on desktop
The responsive website we created only shows the mobile view on the desktop. There is something we have overlooked, even after skimming the code between this website and another responsive website of ours that works perfectly. We appreciate anyone who can fix this for us. Here is a link to our home page: http://trimarkfunding.com/index-trimark-funding.html We find information on allowing desktop views on mobile devices, but no information on how to get a desktop view on a desktop. It was built in Dreamweaver, and the live views and the browser views all show desktop, but when upload pages and view in desktop the pages show up as a mobile view.
On-Page Optimization | | Manifestation0 -
If I enbed the same video from my YouTube account on two different websites, will I get a duplicate content penalty?
I have a YouTube video I want to show my B2B and B2C customers. But I have a different websites for each. If I embed the video will I get duplicate content strike against me?
On-Page Optimization | | RoxBrock0 -
WBF told me to get rid of my low contrast footer links...
I just finished watching WBF where Rand took a moment to identify some of the potentially harmful SEO practices that could be penalized in the upcoming algo update targeting over-optimization. (Great post BTW!) One of which was using low contrast, exact match footer links to inner pages. But I couldn't help but notice something similar being done on the SEOmoz site. In the attached image, I compare this to a site I've done using a similar practice. What are your thoughts on footer links found in this example and how should we, as SEOs, handle footer links in the future? footer-links.gif
On-Page Optimization | | AlexanderAvery0 -
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 -
Getting page cached
I am reworking some content that is deep in my site. What is the best way for google to find it? Some of the pages were cached about 3 weeks ago, but I don't want to wait too long to get them to see the new content (and links).
On-Page Optimization | | azguy0 -
Is allowing comments a good idea?
One (in fact a couple) of my sites is built using Wordpress so I could take advantage of things like Related Posts widgets, etc. However, the layout and navigation of the site is set up more like a traditional website rather than a blog and from the beginning I removed the comment box from the template. I am wondering now whether allowing comments would actually be a good idea for SEO, or if I should leave it as it is. The content of the site doesn't really offer opinions (aside from a few product reviews) so to my mind comments dont really fit. Thoughts or opinions readily welcomed...
On-Page Optimization | | Jingo010