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?
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.
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
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.