4 ms·
So put the rules in a style attribute on that one div. That's hardly a reason to clutter HTML up with presentational things.
by bct 19y ago
So put the rules in a style attribute on that one div. That's hardly a reason to clutter HTML up with presentational things.
- mojuba 19y agoHTML is presentational in nature, so what's the point of separating presentational attributes from presentational tags? With the current spontaneously emerged HTML standard we have a choice of using or not using separate style declarations, like in imperative programming we may decide to declare and give a name to frequently used constants, macros and functions separately. A library, in other words. Is library obligatory in programming? No. That would be just ridiculous.
- cstejerean 19y agostyle attributes are no longer allowed in HTML5 except on font. Font is also no longer allowed except for HTML generated by WYSIWYG editors.