|
|
|
|
|
by goto11
2286 days ago
|
|
Depends - if the content isn't semantically a table (data points with a two-dimensional relationship) but you just want a table-like presentation and you want to conform to accessibility guidelines, this might be totally fine. Sure it might be more elegant to do it with a stylesheet, but for a one-off situation it is not that bad. There is a persistent attitude that presentational information in the markup is Bad and Evil. This is only partially true. Misusing semantic html elements (like using <table> for purely layout purposes) is bad because it hurts accessibility for other people. But putting CSS directly in the HTML does not hurt anybody but yourself. If you do it all over the place it becomes a mess to maintain, but in particular cases it might be the simplest solution. |
|