HTML - CSS Style in Body (FOUC)

About

This article talks about the Style element when it's located in the body element.

It is accepted by browser but this is not the standard. The HMTL DTD does not allow it.

But all browsers support it. Mainly because there is no other way to add styling to a fragment of HTML added via an Ajax request.

style in body has the consequences to re-paint the page and may then causes a flash of unstyled content (FOUC).





Discover More
HTML - Style (Element|Embedded Style) - Attribute

Style in HTML is: an and/of an that permit to declare a style. declarelink element The style element allows style information to be embedded in documents. An style element should be inside...
How to preload HTML resource (Javascript, StyleSheet)

This article shows you how to preload HTML resources to use them at a later time.



Share this page:
Follow us:
Task Runner