[uf-discuss] RFC: Using <img>'s alt attribute for Microformats
Charles Iliya Krempeaux
supercanadian at gmail.com
Wed Dec 14 15:26:04 PST 2005
On 12/14/05, Scott Reynen <scott at randomchaos.com> wrote:
> On Dec 14, 2005, at 4:15 PM, Ryan King wrote:
> > On Dec 14, 2005, at 12:47 PM, Charles Iliya Krempeaux wrote:
> >> So, maybe hCard's, hReview's, etc should allow this too? For
> >> example:
> >> <address class="vcard">
> >> <img class="fn" src="my-name-in-styled-lettering.png"
> >> alt="Charles Iliya Krempeaux" />
> >> </address>
> >> (And, yeah, I know this would give the problem that would can't add
> >> the sub-structure to the "fn" that hCard's allow. But you could
> >> always break it up into multiple images if you wanted. And at least
> >> then you'd support this very common practice.)
> > For properties that don't expect images it might be reasonable to
> > use the alt attribute value for the value of the property. However,
> > it might be a bit too open ended (and how often do people do this,
> > anyway?).
> Using images of stylized text with alt attributes containing the text
> is quite common:
> and, um...
> If you're asking about TV show titles specifically, I'm sure Charles
> could answer that better,
Well, for one I'm having this situation on "Internet TV" sites that
I'm making. People want to use "graphic logos" (that they had artists
design) and not plain text. So, the machine-readable title is the
value of the "alt" attribute.
> but here's one:
> My question: which should take precedence between alt and title values?
IMO, "title" should take precedece over anything else. (Don't have a
reference in the HTML spec to back it up but,...) it seems to kind of
be the purpose of the "title" attribute. For example:
Read <a href="http://changelog.ca/" title="Weblog for Charles
Iliya Krempeaux">my blog</a>.
The phrase "my blog" would a back title for "http://changelog.ca/" so
we override this with the use of the "title". Same would apply to an
Charles Iliya Krempeaux, B.Sc.
charles @ reptile.ca
supercanadian @ gmail.com
developer weblog: http://ChangeLog.ca/
Never forget where you came from
More information about the microformats-discuss