Re: Anchor dilemma

Jon Wallis (cm1906@wlv.ac.uk)
Tue, 13 Feb 1996 17:28:05 +0000


Message-Id: <1.5.4b11.16.19960213172805.2c0fc890@ccug.wlv.ac.uk>
Date: Tue, 13 Feb 1996 17:28:05 +0000
To: Yannick Cadin <yannick@silicium.fdn.fr>
From: Jon Wallis <cm1906@wlv.ac.uk>
Subject: Re: Anchor dilemma
Cc: www-html@w3.org

Yannick 

At 10:26 13/02/96 -0800, you wrote:
>
>I would like to know if the construction below is possible or not? (Because  
>the same text acts as a target and as a link.)
>
>... <A NAME="target"><A HREF="link_to_something">the text</A></A> ...
>
>If it is wrong, I think I must use the syntax below:
>
>... <A NAME="target"></A><A HREF="link_to_something">the text</A> ...

You don't need to do either of the above (and shouldn't).  Both HREF and
NAME are simply attributes of the anchor element A, so it's simply 

        <A NAME="target" HREF="link_to_something">the text</A> 

Regards

--
Jon Wallis          Senior Lecturer in Computing / University Webmaster
School of Computing & I.T., University of Wolverhampton, U.K. - WV1 1SB
Phone / Fax +44 (0)1902 322203 / 322680  |  e-mail:  j.wallis@wlv.ac.uk
University of Wolverhampton Home Page  <URL:http://www.scit.wlv.ac.uk/> 
-----------------"That's some catch, that catch-22"--------------------