r/programming • • Aug 04 '26

Why I’m Writing Pure HTML & CSS in 2025

https://joeldare.com/why-im-writing-pure-html-and-css-in-2025
150 Upvotes

113 comments sorted by

130

u/majortool Aug 04 '26

It took a long time to be able to write pure HTML. There used to be so much other stuff you had to do, and the fact that you can now write plain HTML and have it work the way it's supposed to is an amazing accomplishment.

35

u/feketegy Aug 04 '26

Still no template includes though...

Yes, we have the <template> tag, but I mean something like <template src="/header.html"> is not valid. But if this were to be implemented, it would change a lot of things on the front-end.

19

u/Suppafly Aug 04 '26

I feel like a lot of people turn to scripting to get pretty basic functionality that could be built into html.

11

u/haywire Aug 04 '26

The more you extend HTML the more you kind of have to standardise things that haven’t even agreed on in JS yet.

5

u/Suppafly Aug 04 '26

True, but html is a standard, presumably you get some consensus.

1

u/haywire Aug 05 '26

Well the amount of methodologies using JS kind of shows there isn’t really consensus.

2

u/Suppafly Aug 05 '26

So we shouldn't improve things because people might not agree on how to improve them?

2

u/haywire Aug 05 '26 edited Aug 05 '26

Yeah but for what gain? The issue is hugely divergent and most people have JS turned on.

So who does it solve anything for?

  • people on older devices? These are unlikely to have access to the latest browsers anyway. JS is actually more compatible
  • devs who are bored of JSX? Sure but i mean, JSX works and is fine
  • People who want to serve up a basic HTML site with duplication? Just use an SSG.

The template/include example is a textbook case of something that shouldn’t be solved with pure HTML. And if it was it should work based on layouts and slots and then you’ve just made web components.

As specified, I don’t think it would be an improvement at all, it would be quite the opposite.

14

u/Reihar Aug 04 '26

If I recall correctly web components had an item to do just that during the reasearch phase but it got abandoned because you could do that with Javascript and the rest of the web component feature set.

Please don't quote me on this without double checking but it's what I remember from the last time I checked up on this.

Edit: Best we have in pure html is still iframes, I think. Because existence is pain.

2

u/feketegy Aug 05 '26

This is what I do now: https://codepen.io/editor/feketegy/pen/019fd07f-ad88-7d41-983e-79925275c110?file=%2Findex.html&orientation=left&panel=files&show=split

I wrote a minimal JS script that includes other HTML files using the template tag. You can add templates inside the body and the head too, and also, the included HTML files can contain style and script tags.

-1

u/iamapizza Aug 04 '26

It was pure, selfish laziness and malice on the part of the browser vendors. The point of standards in this area is to reduce the amount of custom JS code that's written, but in the case here which so many people were clamouring for, their solution really was "Uh... keep using JS..."

3

u/haywire Aug 04 '26

Bullshit. There’s so many things to think about in doing that. You basically make the dom stale as soon as you hit a template tag. There’s a reason that logic like this lives in a different layer.

Thinking it’s as simple as “an include tag would be great they sure are jerks for not simply doing that” demonstrates a fundamental lack of understanding.

10

u/joelhardi Aug 04 '26

Client-side includes are pretty trivial to implement but are generally bad for front-end performance and UX, you're adding more HTTP requests that can't be parallelized because fragments have to be downloaded and parsed. And then each time one of these components is loaded, the browser has to re-render the page, which means the user is going to see content on the page jump around when the layout shifts as things fill in.

Classic 1990s server-side includes work the same on basically every web server and are much better, if all you want to do is include a header.html into a bunch of web pages.

19

u/besthelloworld Aug 04 '26

Conspiracy theory time: It kind of feels like the powers that be don't really want the web to work well without JavaScript because that would make ads harder to serve & observe behavior. If users could reasonably disable JS and still utilize a lot of the web, that would be pretty bad for advertisers and really bad for the data collection industry. It feels like there used to be a lot more push for HTML & CSS to expose some amount of actual behaviors and that's entirely gone away.

tl;dr HTMX should be natively supported with default caching 🤘

4

u/haywire Aug 04 '26

This is the most insane post I have read today.

2

u/stumblinbear Aug 04 '26

I've heard crazier things today

2

u/-_one_-1 Aug 04 '26

I wouldn't be surprised if you're right!

2

u/CurtainDog Aug 07 '26

I'm willing to bet there's a salting the earth aspect to this as well; Google was successful because they realized they could use commodity hardware when everyone else was lumbering about with heavy server infrastructure, they don't want potential rivals following in their footsteps (and Google is one of the nicer ones).

0

u/Bomaruto Aug 04 '26

Ever heard about adblockers?

3

u/besthelloworld Aug 05 '26

Except we're talking about how developers can build websites so that regular users can have better default options. Yes, there are ways to block ads. But also the platforms have been working hard to block basic behavior if you use an ad blocker.

If the web had been built in a way that relied less on scripting to a point where requesting JavaScript access was as normal and necessary as a site requesting notification access, the web would be marginally less monetizable for advertisers.

3

u/feketegy Aug 05 '26

Adblockers are currently being gutted pretty hard by browser vendors, and not just Google who is doing this.

2

u/Mrzozelow Aug 05 '26

Still works great on Firefox (in my experience), unless it's being gutted there too?

1

u/feketegy Aug 06 '26

Mozilla's new CEO says he could begin to block ad blockers in Firefox and estimates that’d bring in another $150 million, but he doesn’t want to do that. It feels off-mission.

Also, Mozilla has it's own ad network that they bought recently.

4

u/MINIMAN10001 Aug 04 '26 edited Aug 04 '26

Uhh it looks like they just released experimental support on chrome on version 148, I'm currently on 149. Which looks like I had a pending update to 151 so I'm on that now.

https://developer.chrome.com/blog/declarative-partial-updates

If the article is to be believe it does sound like it is well received among the browsers which seems like a good sign for support.

Edit: Apparently templates became unflagged as per 150. So it is now live.

https://chromestatus.com/feature/5111042975465472

https://chromestatus.com/feature/6534495085920256

2

u/haywire Aug 04 '26

It would take decades now to decide how to do this properly. I even think that your proposal is awkward and not right.

1

u/rsclient Aug 04 '26

Unfortunately, the long and sad history of templating is that one layer of templates is awesome and productive, but far too often people jump into having layers and layers of undebuggable templates.

2

u/feketegy Aug 05 '26

but far too often people jump into having layers and layers of undebuggable templates.

Hand-holding helps nobody, at least give me the option to shoot myself in the foot if I want to.

-2

u/BLX15 Aug 04 '26

It would be revolutionary tbh. I would use that in an instance. I use jQuery at work, and Coldfusion, and it's honestly pretty refreshing compared to all the progressive web frameworks out today. You can sort of accomplish this template include with Coldfusion components.

I would never use it on my own for a personal project, but it's not bad for a 15+ year legacy project

1

u/lelanthran Aug 04 '26

It would be revolutionary tbh. I would use that in an instance.

You can use a client-side include for that. I have this that I mostly use for client-side includes: https://github.com/lelanthran/ZjsComponent

5

u/knightcrusader Aug 04 '26

I was writing pure HTML in 1996. It worked exactly as I designed it.

56

u/ase1590 Aug 04 '26 edited Aug 04 '26

this is such a dumb article

and also insulting that it needs to have a button at the end for a "crash course".

clearly OP is just trying to shill their year old blogpost.

https://motherfuckingwebsite.com has more substance than this post

or hell, even this: http://bettermotherfuckingwebsite.com

17

u/agentoutlier Aug 04 '26

http://bettermotherfuckingwebsite.com

I like how that site insults the previous author on aesthetics and then proceeds to not use SSL and then has twitter incorrect links on the bottom and then finally puts a google analytics script tag so you know when you load it without javascript you get an error. ... Hey but formatting.

So yeah the "grotesque pile of shit" is better.

16

u/ase1590 Aug 04 '26

Oh well then you want https://thebestmotherfucking.website/

😂

4

u/agentoutlier Aug 04 '26

Now that is the site I like and is actually 2000s. I would like some blinking text and some animated gifs of someone digging though.

2

u/theLorem Aug 05 '26

confession: I read the text of motherfuckingwebsite.com every time I have to vent over wasting 4 hours of my life fixing some CSS alignment issues

-4

u/lelanthran Aug 04 '26

clearly OP is just trying to shill their year old blogpost.

I'm not the author.

5

u/ase1590 Aug 04 '26

Then I hope you're being paid by the actual other to shill his crash course ad for webdev, otherwise you're being take for a ride

-4

u/lelanthran Aug 04 '26

Then I hope you're being paid by the actual other to shill his crash course ad for webdev, otherwise you're being take for a ride

I post stuff here that I find interesting.

You know... you don't need to sign up for a free course, it isn't an interstitial blocking the blog, it's not in the way, and it's not a 3rd-party ad-network with trackers.

You can just read the content, which, like the course, is non-commercial.

294

u/agentoutlier Aug 04 '26

I like how it’s kind of anti establishment and back to simpler times but then at the end of a we realize it’s just advertisement for a crash course. See in the 2000s you taught your self maybe with some oreilly books and the content was rarely about "why I am" but dorky humorous stuff.

49

u/Uristqwerty Aug 04 '26

Back in the old days, you learned in part by going to someone else's web page and hitting 'view source'. Minifiers really shut that down.

19

u/-_one_-1 Aug 04 '26 edited Aug 04 '26

I agree, although we could argue that open source has grown tremendously, so now you still have production code to look at—just in a different place.

3

u/RayAyun Aug 07 '26

During early 2000s I remember learning HTML, CSS and some light JavaScript simply due to customizing a Myspace Profile and learning syntax from W3C schools website.

47

u/splashybanana Aug 04 '26

I taught myself with lissaexplains and w3c schools. But I was just a kid playing around back then. Then I ultimately went into backend.

20

u/wej8 Aug 04 '26 edited Aug 04 '26

Then I ultimately went into backend.

Your feelings matter.

edit: until you get a JDK error because your future boss tells you that command line interfaces are outdated and insists that everyone should use GUIs instead because they’re more "standardized" and then you get a request for additional storage on a db box that's blocked because...

Nobody can load the web GUI due to Java issues.

4

u/chicknfly Aug 05 '26

Unless you’re using Spring MVC, why the farts is a modern web app using Java??

3

u/Silound Aug 05 '26

Going to guess there's still a massive market share of Oracle-stack enterprise stuff that exists and has no plans to migrate. Most big enterprise clients wants consistency and stability, so fashionable things are pretty much out of the picture.

Hell, government agencies are some of the largest enterprise clients and the slowest to change anything technology related.

7

u/khosrua Aug 05 '26

Css is simpler time? What happened to the nested tables and gif cg dancing babies

5

u/haywire Aug 04 '26

Yeah like oh wow people discovered the server doing the work again wow

41

u/iamapizza Aug 04 '26

Best of both worlds, static site generators like 11ty. Write in simple markdown, output is html. But this does lose the no build advantage the author mentions. 

5

u/Suppafly Aug 04 '26

Is markdown any simpler than html?

12

u/BaNyaaNyaa Aug 04 '26

It's easier to use IMO. Dealing with tags can be a bit of a mess. Markdown is generally easier to read and less tedious to write.

You're right in saying that it's not much simpler, in the sense that they both have the same semantic concepts, at least for the text.

7

u/MSgtGunny Aug 04 '26

You don’t need to worry about closing tags is the main simplicity improvement for writing it manually

5

u/darkon Aug 04 '26

Back in the late 90s I used to write HTML with a text editor that had a hook for running Tidy. It would add in all the closing </p>, </li> tags and so on and indent the HTML to make it easier to read and update. (There are lots of configuration options for Tidy that can be stored in a config file.)

The editor I used (NoteTab) also had a hook for running a Perl script on highlighted text or the entire file, so I had numerous custom programs I used to make life easier. There were built-in things like highlighting consecutive lines and selecting a macro to convert them into an ordered or unordered list. It's been a long time since I used NoteTab, but it's still around.

Then things like Dreamweaver came along and could produce fancy pages faster and easier than hand-coding. Web stuff was only ever a small tacked-on part of my job anyway. Full-time web developers were hired and I mostly went back to my usual duties.

2

u/watchpigsfly Aug 04 '26

It’s great if you’re accepting input that’s to be formatted later

I’m currently working on a lightweight blog engine for my personal site. Static pages compiled from an SQLite database when “publishing” a new post read in from a Markdown-formatted file. It makes formatting the post itself very easy in a simple text editor, and python’s markdown + jinja2 make it stupidly easy to convert it into the appropriate HTML, stick it in a div, and glue those divs together for a blogroll

1

u/NotQuiteLoona Aug 05 '26

Much easier and simpler (but also a lot more limited). It's very often used to format messages in instant messaging apps like Discord or blogging services. It's de facto the standard markup language if you need some markup but not Word/HTML levels of it - just some lists, bold, italic, underscore, headers, code, combinations of all that, and that's pretty much it.

7

u/N0Religi0n Aug 04 '26

In 2025...

57

u/raman4183 Aug 04 '26

We’re halfway through 2026 little bro

51

u/yawara25 Aug 04 '26

Do you think it's possible the blog post might have been written last year

11

u/probability_of_meme Aug 04 '26

Nah I'm pretty sure he just doesnt know what year it is.

37

u/superraiden Aug 04 '26

By Joel Dare - Written July 14, 2025

Are you paying attention to the Dude's story, Donnie?

8

u/roodammy44 Aug 04 '26

He's out of his element

2

u/pm_plz_im_lonely Aug 06 '26

It's funnier as a CSS joke but as they say, it's just my opinion, man.

3

u/Davidrabbich81 Aug 04 '26

abiding intensifies

4

u/m010101 Aug 04 '26

calmer than you are

3

u/youngbull Aug 04 '26

I am still not over Donnie's death - too soon

1

u/fusionlove Aug 04 '26

Donny was a good bowler, and a good man. He was one of us. He was a man who loved the outdoors... and bowling, and as a surfer he explored the beaches of Southern California, from La Jolla to Leo Carrillo and... up to... Pismo.

1

u/Major_Dot_7030 Aug 04 '26 edited Aug 04 '26

That's why he/she should consider using pure JS too.

3

u/Supuhstar Aug 05 '26

All the reasons I switched to static sites generated with Jekyll, I just don’t have to copy paste the boilerplate across every page

2

u/pm_plz_im_lonely Aug 06 '26

SSGs are a psyops by CDN providers and big pharma (they control MD)

12

u/DigThatData Aug 04 '26

SO. MUCH. AI. SLOP.

Y'ALL. ARE. RUINING. THE. INTERNET.

STOP.

2

u/Zardotab Aug 05 '26

But the premise is stolen from real humans. I'll take that as a win these days.

1

u/DigThatData Aug 05 '26

I get what you mean, but honestly I wouldn't even give the premise that much credit. That article title was generated because it was likely to be successful clickbait. LLMs invent bullshit clickbait all the time, just look at youtube video titles.

"Stolen" isn't actually how LLMs work, sorry.

6

u/chmod777 Aug 04 '26

that was always allowed?

5

u/willehrendreich Aug 04 '26

Data-star.dev.

Thank me later.

1

u/yoyoloo2 Aug 04 '26

The golden path.

2

u/willehrendreich Aug 05 '26

absolutely is.

2

u/Zardotab Aug 05 '26 edited Aug 05 '26

I've pondered similar things in this question.

The pursuit of YAGNI, KISS, and DRY seem dead; giving way to Resume Oriented Programming where devs want to collect buzzwords like Pokemon. Dazzling bouncy UI's indeed sell, but do cost an org in longer-term software maintenance. The eye-candy-tax is bigger than it initially seems.

I'm hoping I find the 0.1% of devs who care about parsimony to form a new "parsimony & minimalism" dev sub-reddit (that's active, not just one person's blog). Together we battle the hype-driven bloaters!

We probably won't agree on everything, but we'll be asking the type of questions that few others have, and document the reason for our differences.

Here's a sample to whet appitites: DRY is often rejected because it's hard to manage differences, the myraid variations on the theme(s). Is this difficulty inherent, or rather due to lack of standards and/or tools to manage and track variation? What would such tools, standards, or conventions look like? How could they be tested for viability?

"I have made this longer than usual because I have not had time to make it shorter." -Blaise Pascal

1

u/CurtainDog Aug 07 '26

Motives drive behaviour. There's nothing intrinsic to DRY that makes it difficult, it's just that the incentives are set up to prefer non-DRY paths over DRY ones. I think if you wanted to study why that's the case you could start with the related issue of NIH, as you can attach dollar values to the alternatives of building vs buying.

1

u/Zardotab Aug 07 '26

Sorry, but I don't see how NIH relates to DRY.

3

u/particlecore Aug 04 '26

because react is a horrible framework?

4

u/willehrendreich Aug 05 '26

any spa is categorically a bad idea in the age of https://data-star.dev being available. HATEOAS for the win.

2

u/pm_plz_im_lonely Aug 06 '26

"X solves more problems than it creates" is an amazing tagline for temu htmx. I prefer my manifesto-driven silver bullets aimed at my head rather than my foot.

3

u/willehrendreich Aug 06 '26

I uhh.. I don't have any idea what that means. Would you like to explain?

2

u/pm_plz_im_lonely Aug 06 '26

Can't say I'll like it, no.

HATEOAS got repurposed from Roy Fielding's writing into much credibility by Github's API, and that restful implementation got leveraged by Carson Gross into many manifesto-like polemics.

To be fair htmx does list when not to use it, although even that post is pointed.

data-star is the same idea, with some client-side stuff to fill the holes, like Unpoly or Hotwire/Turbo. But data-star clearly rides the coattail of htmx's derived evangelization, without naming it. Thus "we have htmx at home", and their website's "solves more problems than it creates" is hilarious in that waveriding context.

Saying "HATEOAS for the win" and "any spa is categorically a bad idea" is presenting a silver bullet narrative, but you wouldn't write Gmail with it. Angular, a SPA framework, would make your life better for that task.

And I've had the Agile Manifesto, and [local-first], all these things building industries around "the problems" they evidently cause. Make my death swift rather than kill me by a thousand cuts.

3

u/willehrendreich Aug 06 '26

Why wouldn't you write gmail with it?

1

u/pm_plz_im_lonely Aug 06 '26

I'll just say claiming it's a 501c while plugin devs who benefit from a Pro subscription post unsolicited affiliate links deserves incisive retort.

4

u/willehrendreich Aug 06 '26

You know that it's a one time purchase for pro, right? For life? And both the core devs explicitly tell you not to buy it for 90% of the projects you'll ever do, and that doing pro is for patterns they explicitly say aren't the recommended path? I haven't given them a dime. I will buy pro eventually to support them, absolutely, but that's for the purpose of supporting them, not really because I see the need for the features.

But you haven't answered, why wouldn't you make an email client with it? What's so special about that ui that you need a SPA? Make your case. Give me evidence. I'd love to hear it. I'm not even kidding. I would absolutely love to hear how hypermedia somehow does a worse job at something like that. With numbers to back it up, please. Load times, payload sizes, simplicity, maintenance costs, npm ecosystem vulnerabilities, lines of code, literally any metric you think is relevant to the building of an email UI, go ahead, let's reason together to find the truth. =)

1

u/razialx Aug 08 '26

I’ll be honest, I’ve never heard of this framework before and I’m really invested in the outcome of this conversation.

2

u/opiniondevnull Aug 06 '26

It is a 501c3, just go look it up. What affiliate links? If you are gonna troll please try harder. We believe in you!

2

u/UXUIDD Aug 04 '26

.. some doing it sinds 1998 .. when <center> -ing a content was easy as sunday morning and <blink> -ing stuff was the highest moment of the day
..
life will never be the same after that ..

0

u/rv77ax Aug 04 '26

<marquee> enter the chat...

                                Hello guys... 

1

u/varnie29a Aug 11 '26

why? it's 2026 now.

1

u/CunningRunt Aug 04 '26

I never stopped. I found all those frameworks and things somewhat helpful but not really. I didn't do enterprise-level complicated stuff, however.

0

u/DaGoodBoy Aug 04 '26

I'm still using classless HTML via tools like SimpleCSS. Stay with the basics, and you'll never go wrong.

0

u/svetlyak40wt Aug 09 '26

The question is "why are you writing anything" in 2025, because there LLM for doing all dirty work now.

-3

u/cheezballs Aug 04 '26

Fuck off with this shit.

-1

u/Ayano-Keiko Aug 06 '26 edited Aug 06 '26

PURE HTML/CSS is not good for dynamic content like database. Modern JS can handle it but far immature.

0

u/Ayano-Keiko Aug 06 '26

BUT if you want to write pretty UI, you need know a lot about HTML/CSS without using LLM

-5

u/taw Aug 04 '26

Most of this list is bullshit.

Building HTML pages is easy

If you want it to look like ass and break on mobile Safari, then sure.

Pure HTML is evergreen

And then phones happened, and those ancient designs work like ass. What's the next thing big that will happen?

Some of our services are keeping pace. Internet speeds have increased about 20 times over the last decade. That far outpaces page size increases, but not everyone has access to these faster services. Users in rural areas are especially impacted. Plus, all of us have felt these problems with the limited data available in some areas on our mobile devices.

Even Third World countries have pretty good internet, and you can get Starlink no matter where you are.

I can host pure HTML pages almost anywhere.

You can host them in exactly the same places with JavaScript.

Accessibility and SEO benefits are automatic

This has not been true in this century, every single search engine bot runs full browser stack with JavaScript enabled. It's not AskJeeves era anymore.

It won’t need security patches

You don't need security patches for frontend only JavaScript ever.

There are no build steps

Most static page generators have build steps anyway, and in any case it's trivial.

And if you want to be max lazy, pick some theme, write it in markdown, that's even faster, but there's a build step.

0

u/[deleted] Aug 04 '26

[deleted] — view deleted comment

4

u/Fiennes Aug 04 '26

Accusing everything that is somewhat well-written as being "AI" shows your ignorance.

-9

u/MrHandSanitization Aug 04 '26

Did I say the article is AI? No, I did not. Did I say Claude would be writing the pure HTML? Yes, I did.

6

u/Fiennes Aug 04 '26

And what evidence do you have of Claude writing pure HTML?

-18

u/MrHandSanitization Aug 04 '26

That no one is coding by hand anymore... Not that I like it, but Claude is too good at HTML, give him some specs and he'll get it.

13

u/larsga Aug 04 '26

I write my own HTML (and code). There. That's your claim refuted.

12

u/Fiennes Aug 04 '26

Uhm, I code by hand? I get there are vibe-coders out there but you can't take the stance that nobody codes at all themselves.

-9

u/MrHandSanitization Aug 04 '26

It's a hyperbole anyway, I'm aware there still are people coding by hand, but, in general, AI is largely involved. So much even, it's fairly safe to call out.

Even senior actual programmes (not some web devs writing HTML) are using either Codex or Claude.

The fact that I have to explain myself about this is saying a lot...

3

u/TheHerbsAndSpices Aug 04 '26

I have 10+ years in the industry, with a heavy focus on performance and optimization, I hand write my code.

Just because you rely on AI to do your job, doesn't mean everyone else does. Someone of us still care about the quality of our work.

1

u/MrHandSanitization Aug 04 '26

I hate AI... I'm glad you still do, but clearly the overwhelming majority does use it.

1

u/[deleted] Aug 04 '26

[removed] — view removed comment

5

u/MrHandSanitization Aug 04 '26

It's always Safari, it's just a trash browser. As long as it runs and people can do what they need to, don't bother with Safari.