3 ms·
Note that TFA is about using a style tag rather than a separate CSS file. It actually discourages the style attribute.
by fhd2 11y ago
Note that TFA is about using a style tag rather than a separate CSS file. It actually discourages the style attribute.
- oneeyedpigeon 11y agoBut TFA justifies avoiding the attribute because it "often leads to unnecessary code duplication" which is irrelevant "if it is only applied in one specific place across the entire site". It also mentions CSP as a reason to avoid the style attribute; can anyone explain what this means? Is this actually going to have a practical effect, and what does an inline style attribute have to do with security policy?