I was modifying some code at work the other day and had to do a double-take. The page rendered fine (IE, FF, NS, Opera - all on Windows) which was obviously a good thing... but when I was viewing the source I found multiple <style> blocks... but not a single one was in the <head> section of the page.
Let me mention again that the page was rendering fine in those 4 browsers.
I have always stood by the statement that all <style> blocks should live in the <head> section (and by association I assumed that they wouldn't work if placed anywhere else. This may very well be the case when you validate against a specific doctype... but "out of the box" it appears to work.
I am not advocating this kind of behaviour - please don't think this for a moment. I was just a bit shocked and wanted to share the discovery with you. Maybe someone else has already discussed this... I haven't seen it mentioned here before.
<insert obligatory link to the w3c site here/>
Cheers,
Jeff
[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]
Let me mention again that the page was rendering fine in those 4 browsers.
I have always stood by the statement that all <style> blocks should live in the <head> section (and by association I assumed that they wouldn't work if placed anywhere else. This may very well be the case when you validate against a specific doctype... but "out of the box" it appears to work.
I am not advocating this kind of behaviour - please don't think this for a moment. I was just a bit shocked and wanted to share the discovery with you. Maybe someone else has already discussed this... I haven't seen it mentioned here before.
<insert obligatory link to the w3c site here/>
Cheers,
Jeff
[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]