Is there a semantic CSS or HTML property/attribute to show a `table` with rows & columns swapped?

In other words, I would like to write the code one way, but have something that flips the rows with columns, and vice versa.

Looking around, I only found JavaScript ways to swap them, but in my case — that's not what I'm looking for. (If there isn't a CSS/HTML solution, then I would rather refactor the code.)