Actually the question is whether it is correct to insert a block inside the block in the name of which there is no mention of the parent, well, for example, there is a code:
<div class="reviews__header"> <div class="custom-select"> <select><option>Опция 1</option></select> </div> </div> Those. Is it possible to do this under the condition that the BEM methodology is taken as a rule?
Or should I definitely add the reviews-header class to the parent block, and then the reviews-header__select class to the block with reviews-header__select , thereby indicating that this selector is a child element? And then the code will look like:
<div class="reviews__header reviews-header"> <div class="custom-select reviews-header__select"> <select><option>Опция 1</option></select> </div> </div>