Posted by dorayme on 12/19/07 00:54
In article
<e6cd580f-32b5-44ce-a7cf-c46a175e87e4@p1g2000hsb.googlegroups.com
>,
guiderocksalt@yahoo.com wrote:
> If there can be only one unique id on a page, then what is the use of
> this?:
Good question. I use it for two purposes, quite different. To
identify a unique point in a page to link into from some menu
(that can be on the same page or a different page; as in a table
of contents and clicking takes you down to or to a particular
part of a page).
The other use is to simply remind myself that I have only one
particular element on the page that has a certain style. A class
will do as well. In fact I am tending to just use class now even
for this latter because it is simply doing more with less (a
design principle that has its advantages). There is no advantage
to the user of the website to use id for marking for stylistic
purposes.
--
dorayme
[Back to original message]
|