|
|
|
|
|
by pvorb
1034 days ago
|
|
That's why I said "if you could". I know it's not valid HTML. For some reason, style tags are only allowed inside the <head/>. My point was that I find it strange that HTML in general has this limit and that script tags are allowed in the <body/> as well. |
|
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/st...)