[Pmwiki-users] Title attribute
Nathan Jones
pmwiki
Thu Jul 1 18:08:46 CDT 2004
Patrick R. Michaud wrote:
> 1. Use .../image.gif"descriptive text" to specify just the alt= attribute.
> 2. Use .../image.gif"descriptive text" to specify both alt= and title=
> attributes.
> 3. Come up with another markup to allow the title= attribute to be
> specified in an image.
I'm not fond of making both alt and title out of the same text - not much
point. Besides, if your aim is to provide text in a tooltip, many
browsers already display alt text in a tooltip.
If titles are deemed important, two options spring to mind. (One markup,
two interpretations.)
[[image.png"alt text" --title text]]
[[DNS --Domain Name System]]
First interpretation: make links with no targets:
<a title="title text"><img src="image.png"></a>
<a title="DOmain Name System">DNS</a>
Second interpretation: lack of target means it's not realy a link, so
render it differently:
<img src="image.png" title="title text">
<span title="Domain Name System">DNS</span> -or-
<abbr title="Domain Name System">DNS</abbr>
--
Nathan Jones
More information about the pmwiki-users
mailing list