homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Search Engines / Sitemaps, Meta Data, and robots.txt
Forum Library, Charter, Moderators: goodroi

Sitemaps, Meta Data, and robots.txt Forum

Comments at the end of a line bad style, why?

 6:31 pm on May 12, 2004 (gmt 0)

My robots.txt validates, but has "bad style". I thought it is common practice to allow and use comments either on lines by themselves, or after code on a line, in all computer languages. Just looking for reasoning that makes this "bad" style. I could easily move it up to the line preceding, but I'm just curious why it matters. What problems does it cause to do it this way?

Comments were detected after a valid field name. Although ok, this is bad style.

User-agent: * # all robots are to use the same rules at this site!



 4:06 am on May 13, 2004 (gmt 0)

The protocol [webdoc.gwdg.de] permits comments, just as you've used them. You're using an overzealous validator. :)


 6:52 am on May 18, 2004 (gmt 0)

I remember reading somewhere that some badly written bots stumble on these when they come across them (even though it is perfectly valid to have them like this).

Better to be safe than sorry!

Global Options:
 top home search open messages active posts  

Home / Forums Index / Search Engines / Sitemaps, Meta Data, and robots.txt
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved