Matt said:
Is there any good reason to use ID selectors? It seems to me
they're effectively the same as class selectors, but limited by
only being able to be used once.
As far as I know, they can also be used as targets for internal links.
Example:
<div id="menu">
<ul>
<li><a href="#chp1">Chapter 1</a></li>
<li><a href="#chp2">Chapter 2</a></li>
</ul>
</div>
<div id="chp1">
<h1>Chapter 1: How it all began</h1>
<p>yadda-yadda-yadda</p>
</div>
<div id="chp2">
<h1>Chapter 2: And what happened next</h1>
<p>hummena-hummena-hummena</p>
</div>
Although it - suprise - doesn't seem to work in Netscape 4, but hey, no
loss here.