css junk

By Hal Canary, 2003-10-04 12:09:13 (link)

As a html author, should I use

<a name="bleg">Text</a>


<a name="bleg"></a>Text?

It only matters if one has defined something in css for "a:hover". The W3C doesn't specify that :hover should apply to any specific element. So one could define css:

span.highlight:hover {
  color:#000000; }

and use html:

words, <span class="highlight">
 words,</span> words!

All this implies that I should make a point to immediately close "<a name=..." tags, unless I want highlighting.