Home › Forums › CSS › CSS naming conventions? › Re: CSS naming conventions?
October 14, 2012 at 7:53 pm #111837
I’ve used PascalCase in the past, and camelCase too. However, now I just use dashes, it’s just more clear.
It comes down to preference and personal style (or team) style. Another question you might ask is how you would name buttons or other specific elements. Some do btnSumbit, others do submit-button, and then some do btnSbmt.
In essence, it comes down what you prefer or what the team members agree upon.