|
|
|
|
|
by jordanlev
4106 days ago
|
|
I don't see how class="two-thirds columns" enforces coupling any stronger than using a different class name... what if that div only exists for the purposes of the grid layout? As long as the styles themselves are in CSS, how is it any different? I mean, of course if you just arbitrarily named the class with gibberish, that's no good -- but the point I'm trying to make is that the CSS classes exist to impart meaning to the designer (or the developer), not the end-user and not the screen readers and not search engine crawlers... so "two-thirds columns" is perfectly semantic because it is giving meaning to that div whose entire purpose in life is to be a two-thirds column in wide-screen view :) I totally understand your point, and I'm kind of being obtuse for the sake of argument... but I do think the term "semantic" is thrown around without people really thinking about "semantic for whom" or "towards what purpose". |
|
Those things aren't supposed to exist. HTML is supposed to look like:
We never got enough power in CSS to actually do that, and current frameworks are a return to the table based layout of the 90s where structure of the layout (not structure of the content) is stored in the HTML.If semantic in terms of HTML is ever thrown around meaning anything but description of the content, it is used wrong.
The question about "semantic for what purpose" is moot when talking about HTML. It is semantic towards what information the content conveys.
"Semantic HTML is the use of HTML markup to reinforce the semantics, or meaning, of the information in webpages rather than merely to define its presentation or look."
https://en.wikipedia.org/wiki/Semantic_HTML
The question of whether that is feasible to do with current technology is completely different, but it is too late to try and redefine semantic HTML.