...

View Full Version : where does CSS go?



brothercake
12-03-2002, 02:37 PM
Is it okay to use a <link> for a style sheet in the body, or is this considered invalid and therefore potentially problematic?

Kiwi
12-03-2002, 03:37 PM
As I understand it either <link ... > or <style> ... </style> tags should only go in the head. You can't rely on it being parsed in the body. The body should only conatin in-line styles.

jkd
12-03-2002, 04:56 PM
http://www.w3.org/TR/html4/struct/links.html#h-12.3

This says it rather bluntly:


This element defines a link. Unlike A, it may only appear in the HEAD section of a document...

brothercake
12-04-2002, 06:59 PM
thanks for the info



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum