
Getting external style sheets to link properly
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." 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.
Help others find this article at Del.icio.us, Digg, Netscape, Reddit, and Stumble Upon
Categorized:
HTML and CSS
(Article 3724)
Tagged: Previous: Monetizing site searches with Google WebSearch Next: How do I do just incremental backups? Subscribe!
Never miss another useful Q&A article again! Subscribe to AskDaveTaylor with Google Reader. hi, I have a lot to say, but ...
I do have a comment, now that you mention it!
|
![]()
Search
Find just the answers you seek from among our 2000+ free tech support articles by using our Lijit search engine.
Help!
Subscribe to
Ask Dave Taylor!
Free Updates!
Sign up and get free weekly updates and special offers on books, seminars, workshops and more.
Articles and Reviews
Auctions and Online Shopping Blogs and RSS Feeds Building Web site traffic Business and Management Cell Phones and Mobile Phones CGI Scripts and Web Site Programming Computer and Internet Basics d) None of the Above HTML and CSS Industry News and Trade Shows Mac OS X Help MySpace, Facebook, Twitter and Social Network Help Pay Per Click (PPC) Search Engine Optimization Shell Script Programming Sony PSP, MP3 Players, Etc. The Writing Business Unix and Linux Help Video Game Tips and Help Windows Help
Recent Entries
Join the List!
Book Links
|