S
S
Shaurma12021-12-04 18:28:28
Layout
Shaurma1, 2021-12-04 18:28:28

How to come up with classes in general, and what to rely on?

I've been typesetting for half a year now, but I always have problems with class names.
Maybe there are some standards, or you can write all this out of your head.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2021-12-04
@Shaurma1

Words commonly used in CSS classes: https://github.com/yoksel/common-words
The name of the class should adequately describe the element or block for which the class is being introduced. Learn BEM, it's the best approach to class naming.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question