News for hackers. Stuff that matters.
Re:Ask HN:Can I do web development using only ONE language(n... by newsbinator on Thursday May 20, 2021 @09:24AM (#27220786)
You can generate web pages writing only javascript to create elements.

https://developer.mozilla.org/en-US/docs/Web/API/Document/cr...

It's really roundabout and pointless, but you can do it.

You can avoid having to write any HTML or CSS, and only write javascript.

I suppose the minimal html web page would be:

<script src="./main"></script>

That's all the HTML you'd have to write, and the rest would be javascript inside main.js

There are no comments on this comment yet.