I really wish xhtml would have won in place of HTML/CSS. This kind of things would have been far more easy
I really wish xhtml would have won in place of HTML/CSS. This kind of things would have been far more easy
> I really wish xhtml would have won in place of HTML/CSS.
This makes me doubt that you understand what you are talking about. XHTML and HTML have exactly the same semantics. CSS has little to do with them (you can use CSS to style you XML documents if you wish so). With CSS3 and modern browsers you can pretty much avoid anything to HTML just for styling purposes. Heck, take a look at http://camendesign.com/ It's not visually complicated, but there are no IDs and CLASSes in the source.What I said is - look at ANY of top100 Alexa websites and show me ONE where style, semantics and action is not mangled together in one big chaos, where HTML is just semantics and not DIVs put inside each other in a hierarchy that doesn't follow semantic logic, but visual logic (with divs classes "UP", "upper_menu" etc), where javascript sits neatly in its file instead being all over the place.
I don't remember the outcome of the debate, because we then proceeded to talk about TV shows.
I still write my HTML5 in correct XHTML Syntax.
Sure, you save some (or a great deal many) characters, but at the cost of making everything that needs to work with it more complex. (Browsers are a large slice of this pie, but by no means is the only slice.)
I'm going to sit back and wait for the cycle to come back around to XHTML-like correctness again.
Those who cannot remember the past are condemned to repeat it.
See http://www.whatwg.org/specs/web-apps/current-work/multipage/... (via http://mathiasbynens.be/notes/minimal-html via http://news.ycombinator.com/item?id=3356389 )