I'm using the right names for classes met. BEM?

Just start with an example:
<div class="b-company">
 <div class="b-company__header">
 <div class="b-item-head">
 <div class="b-item-head__img">
 <img src="img/sq.png">
 </div><div class="b-item-head__text">ABOUT WHITESQUARE</div> 
</div>
</div>
</div>

This code I found on habré 'BEM for the kids', but I do not understand how one thing, why put blocks in the elements? for me it is not very clear, because to prescribe styles is sooooo not convenient(benefit from less just disappear), and have long puzzled over the name of classes.
However, I found another article, prodemonstriruet as they showed only your code:
<div class="header"> <div class="header__logo"> <img src="#" class="header__image"> </div> <div class="header__title> <p class=" header__text'> <p class="header__header-text__color--text"> </p></div> </div> <div class="header header_footer"> <!-- modifier for items I COI ' -- ' blocks '_' --> <div class="header__logo"> <img src="#" class="header__image"> </div> <div class="header__title"> <p class="header__text> <p class=" header__header-text__text--color'> </p></div> </div>
Which will speed up the process of capes styles
.header{
height:100px;
&__logo{}
&__image{}
 &__title{} and so on
}
.header_footer{
height:90px;
}
Thus, the block bill Hader is possible to carry here and there that will not corrupt any structure, and change its modifier
PS I agree, header_footer look very ridiculous, but it's just an example:)
Main question:
In the second code whether I used the name BEM?
June 10th 19 at 16:31
1 answer
June 10th 19 at 16:33
Solution
Such prefixes (b) to refuse, nothing wrong with that. So yeah. Can be used the second technique.
And a little unclear why the styles class with modifiers spelled out in full, it is possible to prescribe an inherited
&_footer{
because bill Hader and footer styles will be prescribed far from each other, and will long to return to bill Hader and register there)
Although the example Yes, it would be logical to throw in bill Hader :) - Ralph.Rolfson commented on June 10th 19 at 16:36

Find more questions by tags Development methodologiesBEMCSSHTMLLess