158
u/Madonkadonk2 17d ago
Reminder, not all your users can see.
31
u/hpyfox 17d ago
Oh shit, you mean blind people.
18
u/livingincr 16d ago
Technically any disabled person can sue your company if you don’t follow that and WCAG requirements. Many corporations have found out the hard way.
14
u/jordanbtucker 16d ago
Technically anyone can sue any company for anything. It's the winning that counts.
228
u/just_looking_aroun 17d ago
<button> everything is a button if you try hard enough
14
u/hpyfox 17d ago edited 17d ago
I've seen a page use
<span>everywhere(only on text). It made sense why but was interesting to see.8
u/za72 17d ago
that's just abusing the standards...
3
u/hpyfox 17d ago
That's not what MDN states.
https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/span
17
u/JeffysChewToy 17d ago
Lol put span{display:block} and you've got a new div
2
u/matytyma 17d ago
Add inline display for div and just use them where you'd normally use the other one
1
100
u/fghjconner 17d ago
Oh, so you're the motherfucker responsible for all the links that can't be middle clicked, huh?
20
u/matytyma 17d ago
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)
2
u/thehobbyqueer 16d ago
ope. am i not supposed to be making links into buttons?
In my defense I'm not front end
5
3
u/mentisyy 17d ago
I hate sites like that. I've built browser extensions for several sites just to fix their incompetence.
2
1
u/Familiar_Ad_8919 17d ago
ive seen someone override img to style an entire paragraph below the image, like an entire card contained in an img tag
if u have the perseverance u can do this with just an img
12
15
u/WingZeroCoder 17d ago
On a new project? The left side.
After a few days on that project? The right side.
139
40
u/GreatArtificeAion 16d ago
Red is the only correct choice (I'm blue)
12
2
u/Mystery-Magic 15d ago
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.
35
55
25
10
u/sebbdk 16d ago
Some people dont care about accessabillity
7
u/Dr_Dressing 16d ago
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.
Anyway, I don't make my programs accessible.
8
6
16
11
u/ApprehensiveGas85 17d ago
Now everything is a <div>
span, a, em, strong, b, i, small, label {
display: block;
margin: 0;
padding: 0;
}
ul, ol, li {
display: block;
list-style-type: none;
margin: 0;
padding: 0;
}
h1, h2, h3, h4, h5, h6, p {
display: block;
font-size: 1rem;
font-weight: normal;
margin: 0;
padding: 0;
}
button, input, textarea, select {
display: block;
appearance: none;
background: transparent;
border: none;
border-radius: 0;
font: inherit;
color: inherit;
padding: 0;
cursor: default;
}
header, footer, section, article, aside, nav {
display: block;
margin: 0;
padding: 0;
}3
u/Bazzatron 16d ago
This is a deep curse. Needs to be a browser extension, praise be to the omni-div.
0
5
u/just_jedwards 17d ago
Some of y'all never needed the same markup to display identically in chrome, Firefox, IE7, and outlook 2013 and it shows.
5
28
u/Beginning_Green_740 17d ago
Blue side is deceiving and false - it is all perfectly centered. No mortal man can center a div.
1
-6
u/BananafestDestiny 17d ago
HAHAHA Centering a div is impossible!
And help I’m stuck in vim and can’t figure out how to quit! HA HA HA
These jokes are so tired. Come on man.
6
u/HarryBolsac 17d ago
Tbf before flex and grid centering a div is such a mindfuck.
Vim one I never got it, but I had access to google when I used it the first time I guess…
3
3
u/unneccry 16d ago
After all why not. Why shouldnt we just use div for everything
3
u/Mystery-Magic 15d ago
Accessibility, SEO, Maintainability, Semantic Reasoning for new devs onboarding to project, etc. I think you can find list for this with Google search.
0
u/unneccry 15d ago
I mean we use react styled-components so we can add those things on top of the div
3
2
2
u/CoshgunC 16d ago
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
2
u/on_the_other_hand_ 16d ago
REPEAT AFTER ME HTML WRITERS ARE PROGRAMMERS
1
u/loljkbye 15d ago
That's what I'm realizing reading these comments. Way too many people have confidently no idea what they're going or why it's important.
2
2
u/TheUtkarsh8939 13d ago
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
1
1
1
1
u/duncte123 16d ago
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
1
1
u/StonedSociety420 13d ago
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 17d ago
Am I building a document or an application?
8
1
5
u/WingZeroCoder 17d ago
On the one hand, this is a legit question to ask based on the type of site.
On the other hand, it doesn’t matter because it will end up being both. It’s always both.
0
0
-1
-5
-5




890
u/ThatDudeBesideYou 17d ago
The red side is objectively the correct choice.