|
|
Re: ALT tags on Avatars and Flags [message #34954 is a reply to message #34952] |
Mon, 27 November 2006 11:15 |
Ernesto
Messages: 413 Registered: August 2005
Karma: 0
|
Senior Member |
|
|
Thinking of it, I am thinking that the template for the avatar should looks something like this instead:
<img src="{VAR: avatar_loc}" alt="{VAR: usr->Alias}'s Avatar">
Instead of having the whole <img src=" thing in the database. Changing it to the above way that I suggested allows you to add a border around the avatar in your skin/Theme, etc etc.
Ginnunga Gaming
|
|
|
|
Re: ALT tags on Avatars and Flags [message #34960 is a reply to message #34955] |
Mon, 27 November 2006 23:50 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Flags use title attribute which is MUCH better then alt, since unlike alt titles are displayed on mouseover.
As far as avatars go, what purpose would the alt tag serve there?
FUDforum Core Developer
|
|
|
|
Re: ALT tags on Avatars and Flags [message #34968 is a reply to message #34963] |
Tue, 28 November 2006 15:14 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Quote: |
And the ALT tag shows on mouseover in IE, while title only shows in Firefox (thats how it used to be at least, I could be wrong now) - But mainly it was for validation purposes.
|
That mostly correct, IE will also show the title tag, which is why I have been using it throughout the forum. The reason why I don't use both tags is because usage of both will inflate page sizes with no apparent benefit other then syntactic sugar.
FUDforum Core Developer
|
|
|