Don't forget that old school named anchors actually used the "name"
attribute...

<a name="some_target">the target</a>

Then linked to it the same way you would for any tag with an id...

<a href="#some_target">click here</a>

I think IE6 still requires this technique.

On Tue, Oct 27, 2009 at 3:15 PM, Nathanael Boehm <[email protected]>wrote:

> Hi Naveen,
>
> Sure you can for named anchors with document fragment identifiers, but
> AFAIK all modern browsers (and I'm not sure which ones if any didn't)
> support the use of using *any* HTML element to link to using a doc frag
> ID.
>
> For example the URL:
>
> http://www.example.com#contact
>
> could link to:
>
> <a id="contact" />
>
> or straight to the relevant header:
>
> <h2 id="contact">Contact</h2>
>
> Cheers,
>
> Nathanael Boehm
>
> Freelance web user interaction designer
>
> UX · IxD · UI design · Prototyping · HTML · CSS · JS · Usability ·
> Accessibility · Social media
>
> Imagine Innovation · UXnet Canberra · OpenAustralia · BarCampCanberra
>
> www.purecaffeine.com <http://www.purecaffeine.com/about/>
>
> Canberra, Australia
>
> 0409 288 464
>
>
> On Tue, Oct 27, 2009 at 2:03 PM, Naveen Bhaskar <[email protected]>wrote:
>
>>  hi ,
>>
>> could anyone tell me whether an anchor tag can be used without href
>> according to webstandads?
>>
>>   <a  id="rateme" ><img src="somepath" alt=""></a>
>>
>>
>>  ------------------------------
>>
>> Thanks and regards
>>
>> Naveen Bhaskar
>>
>>
>> *******************************************************************
>> List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
>> Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
>> Help: [email protected]
>> *******************************************************************
>
>
>
> *******************************************************************
> List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
> Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
> Help: [email protected]
> *******************************************************************
>



-- 

Sent from Melbourne, Vic, Australia


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [email protected]
*******************************************************************

Reply via email to