| Posted by Harlan Messinger on 05/25/05 17:42 
Richard Quick wrote:> Hi,
 >
 > xhtml 1.1 doesn't allow the name attribute, so anchor tags should look like
 > this:
 >
 > <a id="anchor"></a>
 >
 > Bobby seems to think this is an empty link tag, and therefore fails the page
 > for having links that don't make sense out of context.
 >
 > Anyone know a workaround to this?
 
 Don't use <A> at all for this. Assign the ID to the HTML element to
 which you actually want HREFs to lead. For example, instead of
 
 <a id="summary"></a>
 <h2>Summary</h2>
 <p>...</p>
 
 use
 
 <h2 id="summary">Summary</h2>
 <p>...</p>
 
 This won't work in prehistoric versions of Netscape and IE, but if
 you're determined to use XHTML you probably don't care much whether it
 works in those browsers anyway.
 [Back to original message] |