getbem.github.io
getbem.github.io copied to clipboard
Does BEM extend to ids?
What is the recommendation for id naming? I would assume that an id (#) would have the same rules as a block, but is BEM intended only for class naming and not ids?
BEM recommends to avoid id usage as much as possible
Thank you @iamstarkov. Why does bem recommend avoiding using IDs?
because of very high specificity http://cssguidelin.es/#specificity http://csswizardry.com/2011/09/when-using-ids-can-be-a-pain-in-the-class/