i use Dreamweaver and when i link a style sheet
it comes out as
<link rel="stylesheet" href="style.css">
now it leaves out type="text/css"
<link rel="stylesheet" href="style.css" type="text/css">
is that important ?
| SitePoint Sponsor |




i use Dreamweaver and when i link a style sheet
it comes out as
<link rel="stylesheet" href="style.css">
now it leaves out type="text/css"
<link rel="stylesheet" href="style.css" type="text/css">
is that important ?



Not very important for the functionnality of the website, but it's not standards-compliant if you forget the type= declaration.
It also can help if you make a dynamic stylesheet, like a stylesheet in PHP. In this case you'd have a PHP file, so you've got to put the type= declaration there, and add the same kind of thing at the begining of the style.php file.





hey, its all about how you handle your coding.
for example, to set a javascript tag, you also add the type. right?
thats with compliance to the standards. the same goes for css. make sure there's consistence in your coding.
"Imagination is more important than knowledge. Knowledge is limited. Imagination encircles the world."
-- Albert Einstein
Bookmarks