4

Humans, I have a quick question:

Does anyone still uses tables in html?

Comments
  • 30
    Yes

    For tables
  • 4
  • 2
    Why would you not use tables?
  • 8
    Yes

    For positioning
  • 0
    @IntrusionCM I mean, since you can use divs and css. Isn't it better?
  • 5
    @Axel1011111 what if I have tabular data?
  • 1
    I'm working on an old chimera from back when asp.net forms was a thing. Yes, tables are very much a thing.
  • 6
    @Axel1011111 <table>s are for making tables. If you're making a table, use a <table>. Using non-semantic markup is both confusing and overcomplicating it.
  • 4
    @Root Thanks.

    In my head the non political answer was: You can fuck with a dildo ... But it doesn't make as much fun.

    Thx for explaining properly.
  • 5
    Yes. For tabular data
  • 2
    I agree with the others but standard html tables have a lot of downsides. I fucking hate them. The only problem with recreating them from scratch is semantic correctness. Screenreaders for example, wont be able to read them, except you add a lot of mumbo jumbo.
    So it's entirely dependant on the situation at hand. I would use tables for small datasets, that are only being displayed. If you add functionality to them, like editable fields, go the custom route. Just don't forget to add aria attributes though.
  • 1
    Most of the time this discussion goes on....

    <...> Enumeration of possible wird's

    Why use tables, not div's?
    Because you want to represent a table....

    But tables are hard and <positioning, aligning, ...> isn't working.
    Yes, because you are throwing every form of <positioning, aligning...> in a mixer and expect it to work inside... Maybe think about it and plan it...

    Div's are so much better than tables. And responsive!
    Representing a large chunk of data in a table isn't responsive per se. You'd need to either reduce the data and completely transform the table to fit the page - which is unreadable. Or just leave it, which would be best, and let it scroll.

    And so on... I had this discussion too many times...
  • 0
    @alexbrooklyn then I guess my way would've been pretty painful
  • 3
  • 1
  • 4
    For data sets, use tables.
    Use css / markup correctly and they'll work on anything at any screen size.

    To many columns, make them scrollable.

    To many rows, load in parts and pagination data as you scroll down.

    Using them for layouts... we aren't working with IE6 anymore so don't be that dickhead.
  • 0
    @ArcaneEye At a previous employer, we ripped those out of our old asp.net application and replaced them with bootstrap.
  • 0
    I was using table for positioning till last week but then I got to know about grid and flex display types..
  • 3
    @12bitfloat @IntrusionCM @Root

    I had heard that table was deprecated since HTML 4, but you three prompted me to research further and it must have been a miscommunication because it's only deprecated for layouts. So thank you for inadvertently teaching me something
  • 0
    @AlgoRythm Yeah. Table for solving layout issues is pretty bad. Like @COD4 Said: The brain damaged IE support isn't necessary anymore...
  • 0
    @IntrusionCM IE 11 actually supports a limited version of flex, which is ...nice?
  • 1
    @AlgoRythm half true.

    IE 10 has flexbox tweener, IE 11 not I think...

    https://caniuse.com/#feat=flexbox

    Says ton of bugs...

    Edit: Just Support Edge, Case closed. :)
  • 2
    @IntrusionCM my last job used IE and didn't allow Edge

    And yeah that's why I said a limited flex. It will kinda work but the layout rules aren't consistent with Chrome and Firefox.
  • 3
    @AlgoRythm
    That sounds awful. I know the feeling though; been at plenty of companies that set software policies based on legacy lowest common denominator.
  • 1
    @AlgoRythm edge? I have FireFox semi blocked as it doesn't appreciate the corporate proxy being a MITM with self signed certificates.

    Apparently someone wasn't aware FF doesn't use the Windows certificate store by default.
  • 0
    @C0D4 they disallowed Edge because people would confuse it with IE, which many of our (well, not mine anymore) archaic programs still require.

    They still allowed chrome and FF.
  • 1
    @C0D4
    In newer FF Version (68? Not sure) group management policies can be used to configure Windows Key Store / Certificate Management

    Found Link:

    https://github.com/mozilla/...

    https://github.com/mozilla/...
  • 0
    Yeah, why not? gonna invent another one?
  • 0
    @C0D4 Yo' why didn't I think of scrolling columns? How pathetic I am. Thanks, I have a huge table display at work and it's pretty ugly, and I'm working on it this week.
  • 2
    Loud and proud, brother! I use dat shit raw, boy! No border collapsin' n shiet, no fancy padding, none of them sortin' n searchin' and pagimanation, breh! Old skool rulez, baby! Peace.

    Always scroll sideways. Amen.
Add Comment