Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

So put the rules in a style attribute on that one div. That's hardly a reason to clutter HTML up with presentational things.


HTML 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.


style attributes are no longer allowed in HTML5 except on font. Font is also no longer allowed except for HTML generated by WYSIWYG editors.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: