|
|
|
|
|
by fmnxl
617 days ago
|
|
It's more ergonomic than using stylesheets. - No external stylesheets. No need to think about optimising the serving of CSS assets (e.g. with CDN) - Co-locality: work on styling right where the element is, you don't have to figure out which stylesheet affects a particular element. - No naming headache, as there's no need to give class names to elements in order to style a particular (or set of) elements These days HTML is served compressed, with gzip/brotli, so long class attributes won't bloat the resulting file size by much. Stylesheets still has its place of course. |
|