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
-
Internal Linking : File Name or URI/filename.html
Hi, For crawlability, what would be the best way to do internal linking. /aboutus.html or www.xyz.com/aboutus.com Would this make any difference to the website in terms of SEO or bot crawling the website? Regards, Sree
On-Page Optimization | | jungleegames0 -
Getting Duplicate meta title, and meta description errors
I have a website with shopify CMS. At the run time some pages generating itself with Tags name ( or we can say it search pages) which has been used in collections. so it's Meta tag and description is same as well as collection and in SEO tools it showing duplicate meta title, description errors. 1. http://brok3nclothing.com/collections/tanks/girls-skate-clothing
On-Page Optimization | | 1akal
2. http://brok3nclothing.com/collections/accessories/girls-skate-clothing
3. http://brok3nclothing.com/collections/accessories/girls-skate-clothing
4. http://brok3nclothing.com/collections/tanks/girls-surf-clothing For example above URLs are not on website, its generating by self with tags name like girls-skate-clothing, girls-surf-clothing etc. and these pages are accessing Meta titles, description from http://brok3nclothing.com/collections/tanks/ So will you please suggest me that should I worry about these duplicate meta title, description errors ???0 -
Please give me advice on how to get this page back into search engines
Hi. Before we had our site www.in2town.co.uk upgraded, we had this section on the first page of google and even though it does not badly with other search engines, with google we are not in the top fifty. the page is http://www.in2town.co.uk/gastric-band-hypnotherapy i would be so grateful for advice on how to get this section back into google i am also concerned that i have a category called gastric band hypnotherapy, what i mean is, http://www.in2town.co.uk/gastric-band-hypnotherapy/crash-diets-can-damage-your-health-says-gastric-band-hypnosis-expert as you can see from above, we have the category name which is gastric band hypnotherapy and then the article name, just wondering if this is damaging us. any help to sort our ranking issue our would be amazing
On-Page Optimization | | ClaireH-1848860 -
I have a duplicate URL from example.html to example without .html
I've recently changed my links from example.html to just example, however, moz shows that its been duplicated. Is this effects my ranking? if yes, how i can fix it please?
On-Page Optimization | | aptustelecom0 -
The correct way to go from PHP site to HTML site?
I have a website fully coded in PHP and I am doing a re-design over to an HTML site. I searched through the Q&A and there were some conflicting answers. Some said you will need to 301 all the pages. Others said to use the .htaccess to parse all the files as html. What is the correct way I should go about this? Thanks in advance!
On-Page Optimization | | reliabox0 -
Too many on page links in sitemap.html
My crawl report is flagging an issue with too many links to one of my pages, this page is my sitemap.html. However, I have coded the page so that if required is specified it generates an .xml version of the page and if not then the html version is displayed. What is the best way to stop the crawl finding the html version whilst maintaining it on the site for clients navigation?
On-Page Optimization | | SamPenno0 -
Getting access to clients websites for onsite seo
I understand on site seo fine, as I have tweeked up my own website a fair bit. But I am thinking about doing Onsite and Offsite SEO for clients, as I have had a few request now. So my question is what is the best way to get access to clients websites. So I can make the required adjustments. I have one client, who had a company create a website for him, but they have since closed down.
On-Page Optimization | | aussieseoguy0 -
Do you get penalized for cloaking the nofollow attribute in reciprocal link?
Is it bad to present a link to SE robots as a no-follow link, while normal users see it as a do-follow link?
On-Page Optimization | | MBLT0