Mikhail Bozgounov asked about these naming techniques:
>
> A) lowercase: #mainnav, #subnav, .bannersmall, .firstpara
> B) lowerCase: #mainNav, #subNav, .bannerSmall, .firstPara
> C) lower-case: #main-nav, #sub-nav, .banner-small, .first-para
> D)  lower_case: #main_nav, #sub_nav, .banner_small, .first_para
>
I believe that all four are correct. Personally, I do not use underscores
as some (older?) browsers may not accept them. I would also avoid
hyphens in ids, since you may later want to manipulate elements
with JavaScript / ECMAScript using the id. The script may misinterpret
the hyphen as a minus sign.

Life. Love. Peace.
David
--
David Hucklesby, on 6/11/2005
<http://www.hucklesby.com/>
--


______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to