What characters can I use to define the name of a class?

1

I know it's recommended to use letters and the dash, but what if I want to use a teste1/10 class, what's the recommendation?

    
asked by anonymous 15.12.2016 / 21:55

1 answer

1

According to the CSS CSS Grammar you can not use teste1/10 .

A name should start with letters ( a-z ) or a hyphen ( - ) or underscore ( _ ), or a letter ( a-z ), followed by any number, underscores, letters or numbers.

You can use teste110 or teste1-10 or teste1_10 in your case.

Based on this response of the English stackoverflow.

    
15.12.2016 / 22:59