- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
That brain must not have been thinking straight. It was listing (groan) to the right.
Admin
Using tables for non-tabular data screws up screen readers... and this leads to violations of the ADA [Americans with Disability Act], andthat may lead to a loss of [direct or indirect] government funding... This can be a very costly mistake....
Admin
Looks like the sort of thing old versions of Word would spit out when asked to save HTML.
Admin
Also, we can point out the
<a>
tags withtarget="_blank"
BUT withoutrel="noopener"
, since it is a vulnerability to "reverse tabnabbing" attacks: https://owasp.org/www-community/attacks/Reverse_TabnabbingWhile recent, up-to-date browsers ended up (surprisingly recently!) making
rel="noopener"
the default behaviour (to prevent just that), that shouldn't be assumed to be the case everywhere (and maybe back when the WTF code got implemented that wasn't the case yet).Admin
If this was written before 1996, I don't see the WTF. (CSS was invented then.)
Admin
The "UL" tag predates both CSS and "TABLE". Its whole reason for existing is to create a list exactly like this.
There is no point in history where using a table like this was appropriate.
Admin
Correct.
Admin
This smells of 90ies. I remember using tables for everything. It was horrid, and I'm sure those "solutions" will be on display when I try to pass the pearly gates...
Admin
Exactly. The Verdana font style is a tip-off that this is the work of a "helpful" web design tool.
Admin
Not too long ago i was dealing with a website where the original developer had, instead of using <ul> tag they instead used a <p> tag, and then had CSS draw a circle & insert it :before the <p> tag.
So basically, they were trying to invent their own <ul> tag, which was a CSS class on a <p> tag.
but of course, this implementation on the <p> tag was messy in layout compared to <ul> tag, as a <ul> tag includes tabs in the layout (which obviously the original developer didn't include in the CSS).
Admin
Unless you want custom bullet points. (Yes, I saw it abused that way including with usage of marquee to have a basic animation) BTW: Don't look. Quite many modern-looking sites still (ab)use tables for layout...