3 ms·
The Hello World works. But if you wanted to build anything more complex, it probably looked a bit more like <center><table width="100%"><tr><td bgcolor="eee" c
by notahacker 9y ago
The Hello World works.
But if you wanted to build anything more complex, it probably looked a bit more like
<center><table width="100%"><tr><td bgcolor="eee" colspan="2"><img src="foo" align="right" width="200px"><font size="1">...
Virtually none of which is considered valid in HTML5, and which probably doesn't render properly in some modern browsers. Mostly this was less to do with "power" and more to do with a web standards turf war about forcing layout out of markup, despite the available CSS syntax and early 00s browsers struggling a lot with basic grid layouts. We've now come full circle with a lot of modern frameworks end up working with HTML markup like
<div class="center full-width" ><div class="col"><div class="gray col-2 small-text"><img class="right" style="width: 200px">
which is remarkably similar except that it involves a library, custom css and quite possibly javascript polyfills or autoprefixer tools if the framework or parts of the code is written in modern CSS, all to do what HTML4.0 and late nineties browsers did natively. (And you had CSS font and colour selection if you wanted it then anyway)
That's not to say that there haven't been useful innovations like media queries and rounded corners (making them with graphics was horrible) or that a global CSS file doesn't make a lot of sense in most use cases. But there's an awful lot of wheel reinvention that's happened to vanilla layout markup.
- ktpsns 9y agoI second the full circle. However, to be honest, LESS/SASS allows us to use semantic class names, so we can do better. This was hip 4 years ago with Bootstrap and I guess today the young folks uses CSS3 and therefore can get rid of the intermediate compiler.