Reputation: 152687
XHTML documents must use lower case for all HTML element and attribute names. This difference is necessary because XML is case-sensitive e.g. <li> and <LI> are different tags.
Source : http://www.w3.org/TR/2002/REC-xhtml1-20020801/diffs.html#h-4.2
But is it also necessary for attributes, properties, values, class and ID for elements.
Upper case and came case should not be used.
What is the benefit of use lowercase for every thing?
Upvotes: 2
Views: 979
Reputation: 14559
The only real benefit is that your webpage will be XHTML compliant. Browsers are built on the philosophy of "Be conservative in what you emit and liberal in what you accept", and doing crazy capitalization things should not throw any of them (except maybe IE, but that's a whole other battle)
As for theoretical benefits, it saves time/effort for developers, but AFAIK, browsers don't care, so...
Upvotes: 2
Reputation: 311536
What is the benefit of use lowercase for every thing?
There are a few good reasons:
Upvotes: 2