SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Guru prequel's Avatar
    Join Date
    Nov 1999
    Location
    Brisbane, Australia
    Posts
    682
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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 ?

  2. #2
    will code HTML for food Michel V's Avatar
    Join Date
    Sep 2000
    Location
    Corsica
    Posts
    552
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.
    [blogger: zengun] [blogware contributor: wordpress]

  3. #3
    The Hiding One lynlimz's Avatar
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    2,103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •