sinha — 2012-10-31T12:36:28-04:00 — #1
When I put a 'space' in <abbr title> (used for tooltip), it is not renedered. It just renders the text (which is before the 'space'). So the tooltip for the foloowing is rendered as ('Short)
<td rv="SS" class='text '><abbr title=Short Sale><font color ='black'>SS</abbr></td>.
However, when I take out the space
<td rv="SS" class='text '><abbr title=ShortSale><font color ='black'>SS</abbr></td>
the tooltip is rendered as 'ShortSale'.
But, I do want a space i.e. (it should display 'short sale'). Help!!
technobear — 2012-10-31T13:02:28-04:00 — #2
Shouldn't your text be quoted? i.e.
<abbr title="Short Sale">
xhtmlcoder — 2012-10-31T13:58:37-04:00 — #3
It is STRONGLY recommend you put attribute values in quotes in HTML 4.01, although the formal rules allow the omission of the quotes in some 'rare cases'. In XML and XHTML quotes are always required.
Therefore within HTML 4.01 <br title=FrobozzMagic> would be CORRECT but <br title=Frobozz Magic> INCORRECT obviously within XHTML you MUST quote the attribute value. In other words always use: <abbr title="Short Sale">...</abbr> which is the best and safest way.
Even when not in doubt, quote anyway!
stomme_poes — 2012-10-31T16:52:02-04:00 — #4
I hate abbr, because it leaves keyboard-users in the dark.
ralphm — 2012-10-31T19:48:10-04:00 — #5
Presumably that will change as devices catch up, though?
sinha — 2012-11-01T11:37:49-04:00 — #6
Thanks all. Encapsulating it with "" worked.
stomme_poes — 2012-11-02T05:48:07-04:00 — #7
They had over 10 years to catch up. I'm not optimistic.
ralphm — 2012-11-02T08:50:02-04:00 — #8
But with HTML5 reinvigorating it and all ...
stomme_poes — 2012-11-02T17:48:51-04:00 — #9
ralphm — 2012-11-02T19:20:48-04:00 — #10
Well, I really meant the fact that <acronymn> has been dropped in the new version of HTML in favor of this one might prod device makers into accepting that abbr needs to be taken more seriously. I prefer <abbr> purely because it seems more accurate to me (grammatically speaking).
stomme_poes — 2012-11-03T19:24:04-04:00 — #11
Meh, and they added embed. So those who've always used embed, will blindly continue using embed except now it's legal (if they cared, they wouldn't have used it in the first place), while the rest of us who never used embed will continue not to do so. I assume the same for abbr (who still isn't in any vendor's plan to get some keyboard love). Plus, it doesn't seem anyone is paying much attention to old tags under the "HTML5" banner anyways. Only the shiny new ones. And then they don't know how to use them most of the time.
ralphm — 2012-11-04T06:54:00-05:00 — #12
Yes, and it doesn't look like that's going to get any better.
You can have a million Zeldmans ...