Reminder that the original HTML tags (<title>, <dl>, <dd>) had and have real semantic meaning. Spiders and bots could trawl the document and understand how each part related to the document. HTML was, after all, invented by one dude named Tim at CERN, and it was for research papers.
Then we came along and fucked it up with CSS, and a whole bunch of additional semantic tags were added as a course correction.
Then we came along and fucked it up with CSS, and a whole bunch of additional semantic tags were added as a course correction.
I think you got it backwards. Without CSS there was font tags everywhere. If you ever had to work with stuff made in front page it was a semantic disaster
These devs don't know how good they got it. CSS3 and HTML5 are two of the best things to happen to web dev.
I don't ever want to go back to writing XML, fighting with floats or doing layouts using tables.
Then there was the issue of every browser doing its own thing with CSS and HTML because of a lack of standards.
And I don't want people who might have accessibility issues to not have a great experience on my sites or apps just because I can't be bothered writing a little semantic HTML.
not even. I rescued a multi million dollar contract because I suggest using details-summary early in the project and got us both a happy client with a plug-and-play-no-code-solution and the accessibility review giving us basically an auto-pass on the cms-system.
There so many wins with semantic html
Plus with XML... SOAP... huge bottle neck. Failed standard
So many issues with encoding issues with XML and parsers. I remember I had written a really solid xml parser in PHP and someone still managed to break my implementation. Thank god I had rotating logs that the damage was minimized
Today's CSS and HTML are basically magic compared to what I wrote in the past.
The horrors of SOAP, Jesus!
And I remember working on one such parser, and it was a horrible experience. And I remember there were forums where people were competing to make and break them.
Yes. With screen readers. But divs all the way down isn’t always the wrong choice. Mui’s DataGrid, for example, uses aria roles instead of native table elements. That approach allows easier navigation between cells, which is great for spreadsheet style editing, but it’s unconventional to how screen reader users typically navigate tables and can be a little buggy.
I mean yeah when you piss on existing standards to make your New-And-Improved Wheel 2.0 , you have to expect not everyone switching to your Wheel 2,0.
Also, im a little rusty on that stuff, but couldn't they do the exact same thing but with retrocompatibility ? Like instead of <div aria="header"> can't you do <header aria="header"> ???
The existing standards you're talking about for native table elements came out of the wild-west early internet days when tables were used to lay out entire pages. The spec and browser adoption of it have been painfully slow to catch up to how we use them now. The table layout spec still isn't finalized, and even when it is, who knows how long it'll take for vendors to implement it. Up until 2023, Safari would straight up drop the table semantics from a <tr style="display: flex">. And since part of the accessibility tree was built from the layout tree, to a screen reader that row stopped being a row at all and became just a generic flex box.
My example was MUI's DataGrid, a spreadsheet component with row & column virtualization, column pinning, and resizable columns. A far cry from a Wheel 2.0, but it's certainly not a Netscape table. Looks like the initial commit for that was in 2020, a couple of weeks after Chrome fixed that display bug and three and a half years before Safari did. So it's less that they decided to piss on the standards and more that they had to work around the fact that browsers were slow to implement those standards - and they still put in the work to make an accessible product.
But yeah, if your goal is to show less than a couple hundred rows of mostly read-only data, and you're mostly cool with the browser's native styling, using native elements is a fine choice.
I've seen a website that had elements looking like buttons be links and elements looking like links be buttons (but still used just for static redirects)
Exactly. As a blue, I respect and appreciate red. They are the correct choice and something I should be doing too. Blue is bad and I only do it because I didn't knew enough about it in the start and fallen to bad habits. It's easier to write messy code but that shouldn't be appreciated or compared to genuinely good things.
You know, one thing I didn't like about my HCI course was how humanistic it was. But it did bring light to how terrible we are at making basic accessibility on our sites and other programs.
Especially with how terrible navigation is for blind people. They had us watch a video of a Microsoft engineer make a hello world, and apparently we were supposed to applaud him for making the program, but I just kinda felt bad for how much the information flow rate limited him, and how much of a struggle it looked like.
Like, imagine we in 2026 don't have a proper system for blind people to use, such that they can properly navigate without taking an extra three minutes to complete a task.
Accessibility, SEO, Maintainability, Semantic Reasoning for new devs onboarding to project, etc. I think you can find list for this with Google search.
This is literally so stupid, A, Table, and Form tag serve completely different purpose than div or other div adjacent tags like header. The red side should have had the a, table and form be replaced with something like Section and Nav
Depends on how lazy I am feeling and how much work I have to do that day (using fancy tags and researching them every time doesn't count as procrastinating)
892
u/ThatDudeBesideYou Oct 08 '26
The red side is objectively the correct choice.
159
u/Madonkadonk2 Oct 08 '26
Reminder, not all your users can see.
229
u/just_looking_aroun Oct 08 '26
<button> everything is a button if you try hard enough
12
u/dhnam_LegenDUST Oct 08 '26
Chad <table>
15
u/WingZeroCoder Oct 08 '26
On a new project? The left side.
After a few days on that project? The right side.
140
u/SnooRegrets3590 Oct 08 '26
Whatever the previous devs did it
41
u/GreatArtificeAion Oct 08 '26
Red is the only correct choice (I'm blue)
35
u/Aconamos Oct 08 '26
you're missing five extra divs on the right side
55
u/Garland_Key Oct 08 '26
Use proper semantic html, please.
25
u/Mallanaga Oct 08 '26
Semantic tags for the win.
10
u/sebbdk Oct 08 '26
Some people dont care about accessabillity
8
u/A7V7VIHILATOR Oct 08 '26
Screen readers and spiders generally need semantically correct html.
6
u/OhThatLooksLikeMyDog Oct 08 '26
The blue side makes automated tests so annoying
16
u/Sad_Anything5544 Oct 08 '26
<dih>
11
u/ApprehensiveGas85 Oct 08 '26
Now everything is a <div>
5
u/just_jedwards Oct 08 '26
Some of y'all never needed the same markup to display identically in chrome, Firefox, IE7, and outlook 2013 and it shows.
5
u/nguyedav Oct 08 '26
Claude, which side are we on?
28
u/Beginning_Green_740 Oct 08 '26
Blue side is deceiving and false - it is all perfectly centered. No mortal man can center a div.
3
u/_shulhan Oct 08 '26
Ctrl+p enter the chat.
3
u/unneccry Oct 08 '26
After all why not. Why shouldnt we just use div for everything
3
u/LookAtYourEyes Oct 11 '26
Accessibility compliancy is important and good
1
u/hpyfox Oct 08 '26
I think this will apply to classes/id names as well.
Either
<div class='post-header'></div>or<div class='sasdkjagf'></div>.Last one was probably autogenerated but still.
2
u/arran4 Oct 08 '26
<svg>
2
u/Splatpope Oct 08 '26
i'm on red side which means I'll never be a web dev
2
u/CoshgunC Oct 08 '26
how do you even compare A to DIV?
maybe it's possible to create some click events, but even then, isn't button better?
(didn't write HTML for a long time)
2
u/connorjpg Oct 08 '26
I am aware I am wrong.
But I will div my way out of any website.
2
u/on_the_other_hand_ Oct 09 '26
REPEAT AFTER ME HTML WRITERS ARE PROGRAMMERS
2
u/kdthex01 Oct 09 '26
<div>div</div>
2
u/TheUtkarsh8939 Oct 11 '26
This is literally so stupid, A, Table, and Form tag serve completely different purpose than div or other div adjacent tags like header. The red side should have had the a, table and form be replaced with something like Section and Nav
3
u/max_mou Oct 08 '26
Prompt: choose a side, don’t care, merge to main
1
u/Stjerneklar Oct 08 '26
both and more
1
u/darcksx Oct 08 '26
div, input, select, textarea, table, tr, td, a, button, img.
that's it, that's all you need for something basic.
1
u/JackNotOLantern Oct 08 '26
Me who never touched frontend: haha, totally
1
u/JVAV00 Oct 08 '26
Both
1
u/WatchOutIGotYou Oct 08 '26
I'm on the
BClue side1
u/duncte123 Oct 08 '26
Depends on how lazy I am feeling and how much work I have to do that day (using fancy tags and researching them every time doesn't count as procrastinating)
1
u/Cwmagain Oct 08 '26
I don't know I only write HTML in Sharepoint Classic *hisses*
1
u/Icy-Combination-9839 Oct 09 '26
Classy crip⚜️ (Divs with classes)
1
u/pidddee Oct 10 '26
Jokes on you, I'm on the C side making my own tags
1
u/StonedSociety420 Oct 11 '26
This would've made more sense if you'd put aside and main instead of table or form because those are functionally very different from divs.
-3
u/Koendig Oct 08 '26
Am I building a document or an application?
0
u/WiscoToFlo Oct 08 '26
0
u/Thundechile Oct 08 '26
depends which are easier to center on screen, article or div?
0
u/cron-holio Oct 10 '26
Whatever the AI uses 😅
-1
u/enslavedeagle Oct 11 '26
Dunno, I'll have to ask Claude
-5
u/GeneralPatten Oct 08 '26
Isn't this quaint? Now the framework decides what it will be.
-5
u/RobotechRicky Oct 08 '26
<DIVS> everywhere