|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
SammyK Smarty n00b
Joined: 14 Jan 2004 Posts: 1
|
Posted: Wed Jan 14, 2004 4:41 pm Post subject: title tage to go along with alt tag in html_image. |
|
|
Currently, browsers such as Mozilla are unable to see alt tags in images. The html_image function only outputs alt tags. To make the alt tag visible in Mozilla, you must use a "title" tag in the img properties. Might I suggest having a title tag automatically created along side an alt tag when using the alt property in html_image? |
|
Back to top |
|
andre Smarty Pro
Joined: 23 Apr 2003 Posts: 164 Location: Karlsruhe, Germany
|
Posted: Thu Jan 15, 2004 7:30 am Post subject: |
|
|
Just specify title="xyz" as parameter:
Code: | {html_image ... title="my title" alt="my alt"} |
There's a difference between "alt" and "title":
- "alt" specifies an alternate text if - and only if - the image cannot be displayed for some reason (e.g. you disabled displaying images or it cannot be found on the webserver). "alt" is a required parameter (to be really HTML conform in the way W3C decided).
- "title" specified an title text which is mostly displayed as a tooltip when hovering the image. "title" is an optional parameter.
MSIE also displays the "alt" text also when hoving the image. Thats a feature (some say it's a bug) of IE. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|