my use-case is the following :
I'm composing an HTML page by using parts that are valid HTML fragments but not valid pages, like Divs; these elements are using CSS to manage their style.
I'd like to allow each fragment to be responsible for its own styling requirements and to not rely on the declarations of style-sheets in the main fragment (the one with the "HTML" tag).
So here come the question : is there any (standard) way to add some CSS styling outside the HEAD element (excluding the inline styling via the "style" attribute) ?
I guess I could use frames but I'd prefer to avoid this solution.
Thanks in advance for your help.
FINAL EDIT :
Thanks to the propositions of zzzzBov, JMC Creative and moontear, and after some testing, here is the answer :
- use JavaScript to dynamically load some CSS style-sheets : HTML4/XHTML and HTML5 compliant,
- embed "style" elements directly inside the fragments : non-compliant with HTML4/XHTML but seems to be broadly supported, and is HTML5 compliant.
As I must support email clients I've used the second solution which moreover is more simple.
Thanks all for your interest and participation.
<style>
elements to the head, after the fact? – JakeParis