|
| |
|
|
Starhugger
Posts: 631 Joined: 4/12/2005 From: Canada Status: offline
|
Titles in named anchors - 3/28/2008 15:59:33
I'm doing a job right now of cleaning up some very nasty code created by a CMS editor (not one of the well known ones). It seems to default to including a TITLE attribute in its named anchor tags; for example: <a name="blahblahblah"> This doesn't quite make sense to me since it's not a link, as such; it's a named location that a link would point to. ...Unless there's some advantage in doing this for accessibility reasons. Does anyone know of anything like this? Can you think of any reason a named anchor would require or have any use for a title attribute? Or is this like a fish to a bicycle? Thanks! Starhugger
|
|
|
|
Starhugger
Posts: 631 Joined: 4/12/2005 From: Canada Status: offline
|
RE: Titles in named anchors - 3/29/2008 17:30:20
In this case, it's just an internal anchor tag. If it was a link, I could at least see its purpose, even if there are more efficient ways to serve the same purpose. I'm assuming it was the CMS system that created this stuff. I just wasn't sure if there was some accessibility advantage in it somehow. It's the only rational explanation I could think of, other than it just being dirty code. Sounds like it's just the latter. How does the ID work in a named anchor tag? Does it replace the name (e.g. < a id = "blahblah" > ) or is it in addition to the name? (e.g. < a id = "blahblah" name = "blahblahblah" > ) If in addition to, what is the advantage of using both? Thanks Tail! SH
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|