Does have to be in the of an HTML document?
style is supposed to be included only on the head of the document. Besides the validation point, one caveat that might interest you when using style on the body is the flash of unstyled content. The browser would get elements that would be styled after they are displayed, making them shift on size/shape/font and/or flicker. … Read more