Ask HN: If you were to reinvent the web, how would your HTML/CSS/JS look like?

4 points by johnnydoebk ↗ HN
A recent discussion on HN [1] has showed that surprisingly many people do not like HTML/CSS/JS. If you were to reinvent the web, how would your version of client-side look like? How would you simplify/improve markup language and style sheets? Would you replace them by a single language?

[1]: https://news.ycombinator.com/item?id=12477190

1 comment

[ 5.2 ms ] story [ 7.0 ms ] thread
Creating HTML and CSS with the aid of a time machine would be far easier. The problem with HTML and CSS is that we can't break the web, and much of HTML and CSS comes from a time where the kind of things we want to do now couldn't really be imagined.

Here is a list of mistakes the CSS Working Group would like to change, if we could go back in time to do so https://wiki.csswg.org/ideas/mistakes

I would really encourage anyone who thinks the web platform as it stands is sucky to get involved in trying to make it better. There are lots of interesting things happening - a lot of them behind browser flags.

Also, take a look at Houdini - the project to open up the APIs and let you extend CSS itself. There is an explanation of the project here https://www.smashingmagazine.com/2016/03/houdini-maybe-the-m...