Answer the question
In order to leave comments, you need to log in
Class naming conventions?
I observe many different ways of naming classes from the classes-class_item, class__item, -item series.
Why can't you just use words and a class structure like .classes .class .item {bla-bla..};
Is there a strict rule for class naming, styles or something like that?
Answer the question
In order to leave comments, you need to log in
A thousand and one questions on the Toaster, yohoho ©
Here
There is intelligible and understandable, sort of.
No one is forcing you to use this or that rule. Each development team determines which naming "rule" they work with. If you work alone - choose your style, your rule. And don't break it.
In addition, there are popular "standards", such as BEM (modifier block element). The link has already been sent to you. For example, Yandex uses a slightly modified BEM.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question