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

You're right! The W3C has never had an effect on the way the Internet works...

(Sorry couldn't resist.)

I generally like the idea of moving stuff into CSS, but I think it goes overboard when you have to define stuff in CSS for a unique occurrence... like defining rules for the one div that wraps my whole page. Why can't that just be defined as attributes to that div? Why do I have to put it in a separate place in CSS-land when it's only used for that specific div element?

I'm still hoping for someone to come along and make the whole html/css thing sane. It seems awfully hacky now.

Cue flame war



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: