How to use the Element entity
Do not is nest elements :
It make our class name unnecessary long and it create a structure dependency. In the exemple case this is not such a problem, since item will always be a child of menu but consider the following exemple :
Here we are tied to use the search-form inside the right column. If a change is required, the css need to be updated and this is a breaking change.
Instead do :
or :
Or if you really think that the class name require a reminder of the parent element :
Last updated