2 ms·
> Now there are many places rather than just a few where style and functionality can be modified. Styling is done in style sheets, functionality is done in Jav
by nailer 9y ago
> Now there are many places rather than just a few where style and functionality can be modified.
Styling is done in style sheets, functionality is done in JavaScript (with the exceptions already mentioned). Trying to create, say Hotmail in 2018 would result in a much better to understand and debug app than the 1998 version was.
- jacquesm 9y agoFor a seasoned programmer, sure. But a layperson had a much better chance of understanding an early 90's webpage with the exact same content as a modern day one.
- nailer 9y agoI specifically mean for a layperson. <div class="inbox"> <div class="summary"> <q>Hi John how's things?</q> (close all the things) Is way better than <td key="value"> <td key="value"> <img width=1px height=1px class=shim/> <td key="value">Hi John how's things?</td> (close all the things)
- jacquesm 9y agoActually, it isn't. Because it left out all the moving parts that are now in the CSS. That second example is complete, the first one isn't, the second one gives me a fair idea of what the result should look like, the first could look like anything (even a blank page...).
- nailer 9y agoYes, it seperates style from presentation. That's a great way to get an understanding of the structure and content of the document and seperate concerns. 'Table data holding table data' does not do this well at all. Not responding further after this because `Actually, it isn't.` isn't a setence typically found in a polite adult conversation.
- tannhaeuser 9y agoIt has only shifted the hacks out of sight into CSS/JS. Postulating "semantic" HTML and then invent a bunch of ad-hoc syntaxes (CSS) hasn't achieved anything in terms of expressibility really. The original purpose of markup attributes in SGML is precisely to represent presentation and other auxiliary properties in a uniform and manageable way. The concept of "semantic" HTML is, for me, just a rationalization of the HTML/CSS/JS trifecta after the fact. Instead of having presentation properties in HTML, now we have an incredibly complex rendering system that is almost infeasible to implement from scratch.