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
-
Getting different search queries in Google Webmaster
Hi All, I have a website Afrofood.com. In it's Google webmaster search queries i have more than 90 Queries, but not a single query is related with this site. All queries are from different site or subject, they have no any relation with my site. Can any one please tell me how to correct this... Site is Afrofood.com related with African foods, recipes, spices and all that. But showing search queries are: [canada goose](https://www.google.com/webmasters/tools/top-search-queries?hl=en&siteUrl=http://afrofood.com/&authuser=1#canada goose) [canada goose outlet deutschland](https://www.google.com/webmasters/tools/top-search-queries?hl=en&siteUrl=http://afrofood.com/&authuser=1#canada goose outlet deutschland) [polizei shop düsseldorf](https://www.google.com/webmasters/tools/top-search-queries?hl=en&siteUrl=http://afrofood.com/&authuser=1#polizei shop düsseldorf) [canada goose deutschland](https://www.google.com/webmasters/tools/top-search-queries?hl=en&siteUrl=http://afrofood.com/&authuser=1#canada goose deutschland) [canada goose weste](https://www.google.com/webmasters/tools/top-search-queries?hl=en&siteUrl=http://afrofood.com/&authuser=1#canada goose weste) [canada goose kaufen](https://www.google.com/webmasters/tools/top-search-queries?hl=en&siteUrl=http://afrofood.com/&authuser=1#canada goose kaufen) [canada goose hamburg](https://www.google.com/webmasters/tools/top-search-queries?hl=en&siteUrl=http://afrofood.com/&authuser=1#canada goose hamburg) [canada goose größentabelle](https://www.google.com/webmasters/tools/top-search-queries?hl=en&siteUrl=http://afrofood.com/&authuser=1#canada goose größentabelle)
On-Page Optimization | | 1akal0 -
Meta Title in Google does not match the HTML meta title I have coded in a site
I have a client site that is pulling a meta title that is not in his code. I am using Yoast for the titles and descriptions on this site. Not 100% sure why Google is not listing the title we have in place. Could the code be pulling from somewhere else? Is there a fix for this?
On-Page Optimization | | Bryan_Loconto0 -
Reducing the site's header to get more content Above the Fold
The user bizzer posted the following question on the post (http://www.seomoz.org/blog/guide-to-ads😞 "I've got my above the fold area very light on advertising since Panda. But reading #4 about the "template" makes me wonder if I should go further and reduce the height of my header area and maybe even remove one of my two sidebars, so as to increase the content-to-template ratio above the fold. Make sense?" What do you think?
On-Page Optimization | | rpedri0 -
Status of Ajax and SEO? Changing navigation from plain HTML to AJAX.
We will change an old school HTML drop down navigation for an AJAX drop down one. What's your experience in regards to Google indexing AJAX? I know that Google is now able to read more stuff than in the past, but I need some stories "from the trenches" if you're willing to share. Thanks in advance.
On-Page Optimization | | gerardoH0 -
How do I get this program to see url with www. and with out www the same
The program is showing pages with www. as a differant page from a page with out the www. first, this is showing up as duplicate pages when they are the same page, how do I filter this?
On-Page Optimization | | masterplumbertom0 -
Getting 403 error in forum
Hi all, I am getting 403 error for my site where it is throwing error for the following url http://www.topuniversityforum.in/members/member id/ignore and it is showing 7 similar url for 7 user ids. I want to know how can i resolve it and if it is going to have any negative effect on its ranking.
On-Page Optimization | | akhilendra0 -
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 -
Does Code Order Matter?
I read/was told that it was a good idea to order your HTML to show the most important content first. So, on many sites I had put my global navigation div, for instance, below my main content div. Does this still apply? And does wise use of HTML 5 mean this is no longer necessary (eg use of "nav" section tag to indicate this section is about navigation). In the same vein, how does Google know that my sidebar nav is my sidebar nav (which your site seems to say is probably given less weight than top nav), and how does it know my topnav is my top nav? Maybe a daft question, but when someone asked me yesterday I realised I didn't know! (Phew - at last I have asked a short question!).
On-Page Optimization | | PeterMurray0