[uf-discuss] Re: Microformats for scientific papers
lists at hubmed.org
Sun Feb 19 17:01:35 PST 2006
On 19 Feb 2006, at 18:26, Scott Reynen wrote:
> On Feb 19, 2006, at 3:59 PM, Alf Eaton wrote:
>> On 19 Feb 2006, at 15:54, Ryan Cannon wrote:
>>> - <li id="ref16"><a name="ref16"> is redundant and may be (not
>>> sure) illegal.
>> THe (X)HTML validator doesn't seem to complain, so I think it's
>> ok. The thing is, the <li> surrounds the citation, so needs an
>> identifier, but there also needs to be an anchor link in the page.
>> I think you can ignore the internal anchor links as far as
>> semantics go: they're only really useful for page navigation, as
>> they don't wrap anything useful.
> Particularly "Both of these attributes are designed to be used as
> fragment identifiers." which means you can't use the same one twice
> in the same page even if one is name and the other id. Also "XHTML
> 1.0 documents MUST use the id attribute when defining fragment
> identifiers on the elements listed above" one of which is <a>, so
> name is deprecated there, even if the validator doesn't know this.
> You'll find when you remove the name="ref16" that the id="ref16"
> functions just as well as an internal anchor.
Great! I hadn't realised it worked that way, so you can just use
#ref1 to link to the <li id="ref1">. Do all browsers handle that
More information about the microformats-discuss