Block
Block
A functionally independent page component that can be reused. In HTML, blocks are represented by the class
attribute
- The
block name
describes its purpose (“What is it?” — menu or button), not its state (“What does it look like?” — red or big).
|
- You shouldn’t use CSS
tag
orID
selectors when using BEM
Nested Block
You can use nested block .
|
Here header is block , logo is block and search-form is also a block .
Powered by:
@code4mk