Skip to content

Comment on Ask HN:Can I do web development using only ONE language(no HTML/CSS/*JS),please?

Comments

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

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.