2 ms·
I had missed the "if you could" part, sorry. Browsers are actually okay with <style> tags in the <body> and apply the rules inside. Although MDN says they must
by hdodov 3y ago
I had missed the "if you could" part, sorry.
Browsers are actually okay with <style> tags in the <body> and apply the rules inside. Although MDN says they must be placed in the <head> [1]. Email clients seem to be a lot more restrictive, apparently. Or lazy.
[1](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style https://developer.mozilla.org/en-US/docs/Web/HTML/Element/st...)
- pvorb 3y agoHuh, I didn't know browsers are behaving this way these days. I believe I tried this several years ago and it didn't work. Or did I just read the standard? I'm not sure. Anyway, I always assumed it wouldn't work.