Answer the question
In order to leave comments, you need to log in
Which is better extend or second class in html?
Good afternoon, I would like to understand what is better to use. They seem to say that when laying out, you need to use 2 classes, one for general styles, which can then be reused, and the second for a specific element. And you can also use @extend, and then you don’t have to write a second class for some elements where you need to apply the existing class. So I don’t understand whether to sculpt several classes everywhere, or try to use extend. In the first case, the code in css is reduced, in the second, the readability of html is improved.
Answer the question
In order to leave comments, you need to log in
one for common styles that can then be reusedno
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question