Re: remembering where the user is on the page??

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



brian wrote:
A better way to do that is to give some block element--a header, a div, etc.--an ID. That works exactly the same as <a name="...">.

It should work the same. But it doesn't in older user agents or with older assistive technology:

http://stevenclark.com.au/2008/07/11/named-anchors-and-skip-navigation/

I *suspect* that the <a name=""> thing is deprecated, even.

Not in HTML:

http://www.w3.org/TR/REC-html40/struct/links.html#adef-name-A

It's deprecated in XHTML 1.0 (i.e. it's valid to use):

http://www.w3.org/TR/xhtml1/#h-4.10

It's removed in XHTML 1.1 (i.e. it's not valid to use):

http://www.w3.org/TR/xhtml11/changes.html#a_changes

Its removal from XHTML isn't particularly relevant to most web authors, as Trident (and hence both IE and older assistive technology that only supports IE) doesn't support XHTML except when served as text/html (i.e. tag soup), XHTML 1.0 has no advantages when served as tag soup, and XHTML 1.1 must not be served as text/html. ;)

--
Benjamin Hawkes-Lewis

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux