W3C home > Mailing lists > Public > public-html-comments@w3.org > July 2012

Re: Anchor tags

From: Matthias Reuter <matt@gweax.de>
Date: Wed, 04 Jul 2012 09:23:30 +0200
To: public-html-comments@w3.org
Message-ID: <op.wgwutgch7qhf9r@dwka-czc1088002.united.domain>
> I think it would be helpful if, when an anchor link is clicked, the  
> resulting page's anchor could be styled to emphasize where on the page  
> it is. In other words, clicking on index.html#tag would take you to an  
> index page where the Tag section is custom-styled. This would be  
> particularly helpful for anchored links near bottom of pages.

This is what the :target pseudo class of CSS is for:

http://www.w3.org/TR/selectors/#target-pseudo
http://caniuse.com/#search=:target

Matt
Received on Wednesday, 4 July 2012 08:23:01 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 4 July 2012 08:23:01 GMT