This is invalid HTML, as per specification .
In a DTD, the STYLE element is as follows:
<!ENTITY % head.misc "SCRIPT|STYLE|META|LINK|OBJECT" -- repeatable head elements -->
Where head.misc displayed only as pard HEAD or TITLE .
However, as others have noted, many browsers will still parse and use stylesheets that have been defined in body tags. Your mileage may vary ... in particular if you use DOCTYPE in your markup.
Odded source share