HTML First Than What?
The internet are built on top of JavaScript frameworks, like React, Angular, Vue, Inferno, Solid, Svelte, Next and many more.
💡 HTML First says we don’t NEED them.
Yes, you can have a functional web page with just HTML, but it’s a bit like having a basic gsm phone. Sure, it makes calls, but you’re missing out on all those fancy apps and cool features. It’s a bit like having a flip phone when everyone else is using a smartphone – functional, but not as exciting or versatile. So, while HTML is the foundation, sometimes you gotta throw in some extra tech goodies for a truly awesome web experience.
So, here’s the deal: JavaScript is the superhero bringing reactivity to the party on modern web pages. Now, if you want a webpage that can actually react to changes happening elsewhere, your best bet is throwing in some HTML attributes with tools like HTML-X or HyperScript. They’re like the rebels of web development, making things happen without going all JavaScript crazy.
// HTMLX
<button classes="toggle red">Click Me</button>
// HyperScript
<button _="on click toggle .red on me">Click Me</button>
Let’s be real about JavaScript’s role here. While vanilla HTML sets the stage, we’re way past the point of expecting reactivity to magically appear in HTML. Now, it’s all about embracing a JavaScript framework, crossing your fingers that it not only survives but stays dependable for free.
It’s Not HTML First, It’s First Html Than Everything Else #
In the real world of development, the real challenges are not around with HTML tags but rather manipulating the data, orchestrating events. HTML is the least of your worries. Yet again, thanks to JavaScript.
I think It’s too late for only HTML First approach. Dynamic web experiences lead to today’s modern JavaScript framework alternatives on webpages.