HTML started somewhere between semantic and layout oriented; now it is more the latter. CSS is a powerful selector language but it selects... layouts.
JavaScript is a general-purpose language and does none, some or all of the above.
The web’s biggest problem IMO is that it has evolved in the direction of giving content providers more and more control over how that consumption is consumed. I miss the gopher days when content was 100% semantic and layout was 100% a client-side task.
What I would love to see is a semantic-only language that is textual (easy for a human being to type in a text editor) but more structured with extensible semantics. Instead of using | and - to “draw” tables, just express the data and leave it to the renderer to choose the best (or user-preferred) rendering.
Maybe I’ll mock one up.
Ed: spelling “not”—>”now”