Page 1 of 1
capitals or not
Posted: Mon Nov 17, 2003 9:56 am
by gavinbsocom
does it matter if you type html in capitals or lower case? It doesnt matter right?
Posted: Mon Nov 17, 2003 9:58 am
by JayBird
nope, doesn't matter, as long as your consitent for readability, or just whatever you fancy really.
Mark
Posted: Mon Nov 17, 2003 10:01 am
by infolock
html is not case-sensative by any means as bech pointed out. so <a HrEf .....> would work just like <a href....>
Posted: Mon Nov 17, 2003 10:21 am
by nigma
But if you are writing XHTML your tags need to be in lower case.
Valid XHTML markup: <a href="URLHERE">TEXTHERE</a>
Invalid XHTML markup: <A HREF="URLHERE">TEXTHERE</a>
Posted: Mon Nov 17, 2003 11:48 pm
by m3rajk
that's becasue xhtml has that pesky xml case sensitivity... i guess it's good i met both languages at the same time about 7 years ago and just happen to prefer not to go for the shift key... gave me some goo habits now that html is being replaced by xhtml....
Posted: Tue Nov 18, 2003 1:53 am
by microthick
lower case html has been the recommendation since html 4.0 came out.
before that, uppercase was the recommendation.
Posted: Tue Nov 18, 2003 9:19 am
by maniac9
eventually when browsers and everything go to xhtml and that becomes the standard, it will matter what case they are in, so do it lowercase...i think it's easier to read than upper anyways...
Posted: Tue Nov 18, 2003 10:19 am
by nigma
I always thought capitalizing your tag names looked silly and was a waste of time, so I never did it. When I discovered XHTML I had no nasty habits to break! w00t!
Posted: Wed Nov 19, 2003 9:25 am
by m3rajk
i think i have one... javascript... onClick...
Posted: Wed Nov 19, 2003 10:53 am
by Saethyr
I have wierd habits when it comes to capitalization in my php code, My variables look as follows
NewVariableName
I cap the first letter out of habit
Saethyr
Posted: Wed Nov 19, 2003 11:06 am
by microthick
Saethyr wrote:I have wierd habits when it comes to capitalization in my php code, My variables look as follows
NewVariableName
I cap the first letter out of habit
Saethyr
I've noticed that that's often the standard that languages like vb and coldfusion employ.
usually c++, java go newVariableName.
Posted: Wed Nov 19, 2003 11:32 am
by Saethyr
I started programming with VBScript so I guess I now know where that came from

Just seems easier to remember for me then the
type.