3 ms·
> just looking at them in the raw HTML document, they make it obvious how the page is going to be presented in the end I guess you can say the same thing abou
by goto11 6y ago
> just looking at them in the raw HTML document, they make it obvious how the page is going to be presented in the end
I guess you can say the same thing about the infamous <FONT> tag. But if you want styling information directly in the HTML, you can still do it with the "style"-attribute, using marginally more syntax. e.g. <div style="display:table"> or <div style="display:flex; flex-direction:row"> instead of table <table> where html table semantics are not appropriate.
I do find flexbox a much nicer model than tables, but I guess that comes down to taste. A flex is basically like a table with either a single column or a single row, and a bit more fine-grained control.
- jraph 6y agothe style attribute is problematic with strong content security policies disallowing unsafe-inline styles [1]. This can be worked around using classes though. [1] https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/style-src https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Co...