A reader writes:
” On page 62 of Creating Cool HTML 4 Web Sites, the first line of code (<link type=”text/css” href=”mystyles.css” /> does not seem to work until I add ‘rel=stylesheet’. I’ve tried it out on both IE 6.0 and Netscape 7.x.”
You’re absolutely correct!
Some of the newest browsers insist on having the link descriptor attribute rel included to confirm that it’s a stylesheet you’re pointing to.
Fortunately, it’s pretty obvious if it isn’t working and it’s a very easy fix to get it working properly.
Here’s an example of how to correctly include a stylesheet:
<link type=”text/css” rel=”stylesheet” href=”mystyles.css” />
Hope that clears things up.
Note that you can always pop over to W3C (aka the World Wide Web Consortium) and read the official CSS specification documents, if you’re so inclined.
If dis works,i dnt knw how2thank u..bt to say thanks playa….
hi,
is there a way to make a style sheet by os (MAC vs PC) and browser?