Is there a standard way I should be naming my element’s IDs and classes. Recently I have been looking into cleaning up all my CSS (NIGHTMARE!) and I have been seeing a lot of different schemes for naming. I am using camel casing for mine but I have been seeing, in my adventure to organize, hyphened selectors, capitals at the start of every new “selector word”, and much more. I also use dang near whole words for my selectors.
So should it be:
rightContent
right-content
RightContent
or is it really personnel preference.
It is completely personal preference, but there is one thing you should do: be consistent with what you choose.