473,404 Members | 2,174 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Length of title attribute

DU

I am looking for opinions on the issue of length of title attribute.
First of all, the current HTML 4.01 spec is rather vague on this
issue... at least, it isn't explicit nor normative.

The HTML 4.01 spec and WAI mention "short message", "short description",
"advisory title", "informative link title" for the title attribute.
Personally, I think that having a more than 128 characters tooltip does
not meet the original goals of the HTML 4.01 spec. and is not a good
webpage design decision.

DU
--
The site said to use Internet Explorer 5 or better... so I switched to
Firefox 1.0.4 :)
Jul 24 '05 #1
4 15384
"DU" wrote:

I am looking for opinions on the issue of length of title attribute.
First of all, the current HTML 4.01 spec is rather vague on this
issue... at least, it isn't explicit nor normative.


The Macintosh version of IE can only show 48 characters. Any more than that
and it truncates the title to 45 characters and sticks "..." on the end.

Other browsers only seem to be limited by the number of characters that fit
across the top of the window, AFAICT.

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/
Jul 24 '05 #2
"DU" <dr*******@hotNOSPAMmail.com> skrev i melding
news:3f************@uni-berlin.de...
I am looking for opinions on the issue of length of title attribute.
First of all, the current HTML 4.01 spec is rather vague on this
issue... at least, it isn't explicit nor normative.

The HTML 4.01 spec and WAI mention "short message", "short description",
"advisory title", "informative link title" for the title attribute.
Personally, I think that having a more than 128 characters tooltip does
not meet the original goals of the HTML 4.01 spec. and is not a good
webpage design decision.


Although the specs ARE vague describing the length for the title attribute,
it's just a general guide. There is no set maximum length, but you have to
take into consideration your visitors on this matter.

Compare the textual content of this attribute to the <title> element, or
even the "Subject" field in your e-mail and/or Usenet messages. Provide a
short explanation/description of the instance of the element you're using it
with, and don't overdo it.

Not all so-called "web designers" take this into consideration, as their
egos expand beyond the comprehension of what other people (ie. the visitors)
might consider a good website experience.

--
Kim André Akerĝ
- ki******@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)
Jul 24 '05 #3
"Philip Ronan" <in*****@invalid.invalid> skrev i melding
news:BEBD4C37.32236%in*****@invalid.invalid...
"DU" wrote:
I am looking for opinions on the issue of length of title attribute.
First of all, the current HTML 4.01 spec is rather vague on this
issue... at least, it isn't explicit nor normative.
The Macintosh version of IE can only show 48 characters. Any more than

that and it truncates the title to 45 characters and sticks "..." on the end.

Other browsers only seem to be limited by the number of characters that fit across the top of the window, AFAICT.


The OP was talking about the title ATTRIBUTE, not the title ELEMENT. Quick
reminder about the differences:

title attribute:
<span title="Hello, this is my description">of this text</span>

title element:
<title>Place page title here</title>

--
Kim André Akerĝ
- ki******@NOSPAMbetadome.com
(remove NOSPAM to contact me directly)
Jul 24 '05 #4
DU wrote:

I am looking for opinions on the issue of length of title attribute.
First of all, the current HTML 4.01 spec is rather vague on this
issue... at least, it isn't explicit nor normative.

The HTML 4.01 spec and WAI mention "short message", "short description",
"advisory title", "informative link title" for the title attribute.
Personally, I think that having a more than 128 characters tooltip does
not meet the original goals of the HTML 4.01 spec. and is not a good
webpage design decision.


While the tooltip from a TITLE attribute that is the width of a
maximized window might be considered too long, there is no specific
limit in the HTML specification

There is a Mozilla bug (likely in Firefox, too) that tooltips in
general do not wrap. This affects the TITLE attribute. In
Mozilla, the tooltip for a TITLE attribute on an IMG element will
appear at the right of the window if the image itself is at the
right. The same is true for a TITLE attribute on a link (<A> </A>)
that appears near the right margin of the text. Although a tooltip
might be less than half the width of the window, Mozilla truncates
it at about the 90th character.

See the bug report at
<URL:https://bugzilla.mozilla.org/show_bug.cgi?id=45375>.

--

David E. Ross
<URL:http://www.rossde.com/>

I use Mozilla as my Web browser because I want a browser that
complies with Web standards. See <URL:http://www.mozilla.org/>.
Jul 24 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Fabri | last post by:
I guess if it is possible to write a multiline title attribute natively with HTML + CSS. GMail does it and I don't know how. <div title="first linesecond line">My Div</div> Any help...
6
by: KS | last post by:
Is it possible to make the title attribute, which shows a text inside a postit, for a html tag get displayed forever when the coursor is over the html tag. I want the postit to be displayed until...
1
by: david | last post by:
I need put some html code into title attribute of A tag, so that user could see html when they move mouse over the link, I think this isn't a standard use, but it does work. The problem is how can...
1
by: Axel Dahmen | last post by:
Hi, I want to add a TITLE attribute to some asp:... controls. How can I do that from my code-behind file? TIA, Axel Dahmen
1
by: kgmahoney | last post by:
in v2 of asp.net when I do a: <asp:hyperlink id="hl1" runat="server" tooltip="xyz" ... it doesn't render as a title attribute of a <a ... tag in firefox even if I do a: <a id="hl1"...
2
by: keith | last post by:
In an MSDN article on high quality design principles combined with standards driven code, Microsoft states: that the image title attribute should display when users roll over the image and that...
5
by: dmorand | last post by:
How do you add a title attribute to a coldfusion input element? I tried adding title attributes on my cfinput's but they are being erased. How am I supposed to do this?
2
binidj
by: binidj | last post by:
On a site I'm writing at the moment, I am using the <abbr> tag to expand on some acronyms (I'd use the <acronym> tag but I understand that's not really legitimate any more) within the body of the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.