View Full Version : why: <link rel="stylesheet" id="id">
spenoir
09-16-2005, 11:06 AM
Why would someone want to add an id to the link element? Also, has anyone heard of linking to a meta data file in HTML?
cheers, :cool:
Bill Posters
09-16-2005, 11:25 AM
One possibility…
An id or other custom attribute can be used as a means to reference particular stylesheets as part of a style-switching mechanism.
e.g.
http://www.alistapart.com/articles/alternate/
spenoir
09-20-2005, 04:19 PM
I think you'll find that there isn't a reason and there shouldn't be. bloody legacy code i hate it! :eek:
gsnedders
09-20-2005, 05:08 PM
I think you'll find that there isn't a reason and there shouldn't be. bloody legacy code i hate it! :eek:
Umm... Bill's post more or less explained the reason for it existing, and it wouldn't exist in XHTML 1.1 if it was, as almost all legacy code was removed from it.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.