3 ms·
Way to defeat the purpose of CSS. How is hard-coding the styles to each element something better? How can this not lead to MB of worthless crap to download, ins
by JetSpiegel 8y ago
Way to defeat the purpose of CSS. How is hard-coding the styles to each element something better? How can this not lead to MB of worthless crap to download, instead of the content?
Want to show a title? Use `<h1>`, and style it with `h1 {color:palevioletred;font-size:18px;}`. Except hardcoding the font-size as pixels is another code smell, the `h1` is already bigger than the text body. Use `2em` if you really need things to stand out.
It's in the name, Cascading.