• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2168
  • Last Modified:

Capitalize HTML tags?

Can anyone give me a definitive answer: should HTML tags be uppercase or lowercase?  Just wondering really.  It seems the W3C site uses lower case for both tags and attributes so I am guessing that is how it should be...

In other words should I write:

<TABLE cellpadding="0" cellspacing="0" border="0">
or
<table cellpadding="0" cellspacing="0" border="0">

If someone could could point me to the actual guideline I would appreciate it.

Thanks!
0
2djohn
Asked:
2djohn
1 Solution
 
StormyWatersCommented:
HTML 4.01 is case-insensitive, but the typical convention now is to use lowercase, because it is required in the next generation, XHTML (Which may or not be phased out, but if a basis in XML remains, lowercase will stay.)

http://www.w3.org/TR/2002/REC-xhtml1-20020801/#h-4.2
0
 
GwynforWebCommented:
There are example of case sensitivity eg

http://www.cs.tut.fi/~jkorpela/HTML3.2/3.6.html
0
 
2djohnAuthor Commented:
Thanks Gwynn- but I am looking for something a little more like Stormy's answer.  I realize HTML is not case sensitive.  But thanks for the input.
0
 
DreamMasterCommented:
Recommended is not to use uppercase characters as Stormy already said, that said...if you do use uppercase, use them concequently to use proper XML syntax.

Regards,
Max.
0
 
2djohnAuthor Commented:
Thanks everyone.  That is what I was hoping for since I have been using lower case for years!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now