3 ms·
Ask HN: what would your ideal language for web-pages look like?
Recently there's been a wide discussion on HN about using css vs tables and it seemed to me that a lot of people are unhappy about both ways and choose a lesser evil. Even further, maybe they are unhappy about the languages themselves, not just their elements.
I'd like to ask you, what would your perfect markup language (or languages, a replacement for css and html) look like? Just make it whatever you want: an XML sub-language or something completely different. Code examples would be appreciated.
- sam_in_nyc 18y agoI type in English what I want the page to look like, and it makes it look that way.
- snitko 18y agoI don't think you really want that.
- makecheck 18y agoI like "markup that doesn't look like markup", e.g. reStructuredText or Textile.
- cx01 18y agoI'm not sure why your title says "markup language" but then you include CSS, so I assume that you're talking about the combination markup+style. In this case I would say: HTML is quite OK, but CSS is broken. I would add functions and variables to CSS, so it allows you to write stuff like this: .someDiv { width = $someOtherDiv.width - 150px; } .someOtherDiv { width = 450px; height = min(300px, $someDiv.height); }
- joshuarr 18y agoHow about just adding height: 100% to CSS. Would that be so hard!?