You should not stream presentation information (CSS) to your data layer (HTML).
You must give your elements a class name that describes their purpose. Regardless of whether it floats or not, it does not matter in HTML. You solve it in CSS.
What if you have a class name like blue , and then your customers say that now we want all these things to be red?
Example
HTML
<ul id="primary-menu"> .... </ul>
CSS
#primary-menu { float: left; color: #f00; }
source share