Answer the question
In order to leave comments, you need to log in
Should I use attribute selectors?
Now I'm taking a teamtreehouse course on css selectors, and they affect attribute selectors, citing
div[id="blablabla"] as an example, in fact, this is the same as #blablabla div, isn't it?
If yes, which option is preferable?
PS Well, from a lamer's point of view, it seems to me that it can be convenient for all sorts of input[type="submit"], but why write divs like that?
Answer the question
In order to leave comments, you need to log in
IMHO, the attribute selector should only be used when there is no other way.
https://developer.mozilla.org/en-US/docs/Web/Guide...
https://benfrain.com/css-performance-revisited-sel...
https://css-tricks.com/ efficiently-rendering-css/
https://smacss.com/book/selectors
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question