Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-03-2002, 02:37 PM   PM User | #1
brothercake
Senior Coder


 
Join Date: Jun 2002
Location: near Oswestry
Posts: 4,508
Thanks: 0
Thanked 0 Times in 0 Posts
brothercake is an unknown quantity at this point
where does CSS go?

Is it okay to use a <link> for a style sheet in the body, or is this considered invalid and therefore potentially problematic?
brothercake is offline   Reply With Quote
Old 12-03-2002, 03:37 PM   PM User | #2
Kiwi
Regular Coder

 
Join Date: Oct 2002
Posts: 380
Thanks: 0
Thanked 0 Times in 0 Posts
Kiwi is an unknown quantity at this point
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.
__________________
Strategy Conscious
Kiwi is offline   Reply With Quote
Old 12-03-2002, 04:56 PM   PM User | #3
jkd
Senior Coder

 
jkd's Avatar
 
Join Date: May 2002
Location: metro DC
Posts: 3,163
Thanks: 1
Thanked 18 Times in 18 Posts
jkd will become famous soon enough
http://www.w3.org/TR/html4/struct/links.html#h-12.3

This says it rather bluntly:
Quote:
This element defines a link. Unlike A, it may only appear in the HEAD section of a document...
__________________
jasonkarldavis.com
jkd is offline   Reply With Quote
Old 12-04-2002, 06:59 PM   PM User | #4
brothercake
Senior Coder


 
Join Date: Jun 2002
Location: near Oswestry
Posts: 4,508
Thanks: 0
Thanked 0 Times in 0 Posts
brothercake is an unknown quantity at this point
thanks for the info
brothercake is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:22 PM.


Advertisement
Log in to turn off these ads.