Is it possible to insert newlines, or some other character,
into <title> or <alt> to get the effect of a tooltip,
where the page author controls the line breaks?
If yes, could somebody send an example of how to do it?
I'm interested in recent versions of IE and Netscape/Mozilla.
Thanks in advance. 7 20620
"mitch gart" <mg***@kronos.com> wrote in message
news:5e**************************@posting.google.c om... Is it possible to insert newlines, or some other character, into <title> or <alt> to get the effect of a tooltip,
The <title> is what typically appears in your browser caption. There is no
such thing as <alt>.
If you're asking about the title and alt *attributes*, I don't know what IE
or Mozilla *do*, but the values are these attributes are supposed to be of
type CDATA, the legal characters from the document character set. Embedded
line feeds are supposed to be ignored, and carriage returns are supposed to
be converted to a single space.
If you want to experiment with what actually happens in a particular
browser, feel free to try any of the following and see if it produces a new
line in your tooltip. I'm skeptical, but you never know.
\0A
\r
\n
<br>
Also: the alt attribute is not intended to produce a tooltip. AFAIK only IE
among current browser versions does produce one; Netscape 6 and onward
don't.
"Jukka K. Korpela" <jk******@cs.tut.fi> a écrit dans le message de
news:Xn*****************************@193.229.0.31 More on this (discussing specifically alt, but similar considerations apply to title attributes): http://www.cs.tut.fi/~jkorpela/html/alt.html#length
I was surprised erading this page, in particular wondering why a alt
attribute could contain a long text ?
As I undestand it, alt should contain a replacement string, as longdesc
should contain the picture's description. Am I wrong, did I miss somthing ?
"Harlan Messinger" <h.*********@comcast.net> a écrit dans le message de
news:2i************@uni-berlin.de Also: the alt attribute is not intended to produce a tooltip.
Yes, good to notice. The title attribute works really fine for that in
almost any browser (if you limit its use to tha A elements)
"Pierre Goiffon" <pg******@nowhere.invalid> wrote: I was surprised erading this page, in particular wondering why a alt attribute could contain a long text ?
For the practical reasons I describe on my page, including the line break
problems. When the text is long, you run into problems whether you use
line breaks in the source or not.
As I undestand it, alt should contain a replacement string,
Correct. For example, if the image is an organization chart, the alt text
should be a textual description of the organization. It is possible to
write such a long alt text, and e.g. Lynx supports it pretty well, but it
won't work reasonably on typical graphic browsers with images off, for
example. Besides, you would probably want to use markup, such as <ul>, in
describing the organization, and you can't use markup inside an
attribute. Thus, it is best to refer to the description with a link.
Then the alt text can be short, perhaps alt="" (depending on how you
present other things).
as longdesc should contain the picture's description.
The longdesc attribute is vaguely defined that way. Its practical meaning
is very small. If a long description is needed (or deemed useful), use a
normal link to it near the image.
--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html
Pierre Goiffon wrote: Yes, good to notice. The title attribute works really fine for that in almost any browser (if you limit its use to tha A elements)
You do not need to limit to the <a> element. In my experience it
works just fine for most elements. AFAIK, the only elements IE refuses
to display the tool tip for is <abbr>, and <option>. For everything
else, it should work as expected.
--
Lachlan Hunt http://www.lachy.id.au/ la**********@lachy.id.au.update.virus.scanners
Remove .update.virus.scanners to email me,
NO SPAM and NO VIRUSES!!!
"Lachlan Hunt" <la**********@lachy.id.au.update.virus.scanners> wrote in
message news:_B***************@news-server.bigpond.net.au... Pierre Goiffon wrote: Yes, good to notice. The title attribute works really fine for that in almost any browser (if you limit its use to tha A elements) You do not need to limit to the <a> element. In my experience it works just fine for most elements. AFAIK, the only elements IE refuses to display the tool tip for is <abbr>,
Not so: IE also refuses to display the tool tip for <xypn>, <sss>,
<oi3lso3nd>, and so forth. :-) OK, I'll let you in on the joke: IE refuses
to display a tool tip for <abbr> because <abbr> is absent from IE's HTML
repertoire. Therefore, IE treats it just like the genuinely bogus tags I
listed.
and <option>. For everything else, it should work as expected. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: mark |
last post by:
IF I have something like this:
<title><?php print($pagetitle); ?></title>
<body>
<?php include("folders/my_include.php"); ?>
</body>
</html>
and my_include.php contains the value to the...
|
by: Info 3000 |
last post by:
Hi there,
Simple question, but headache !
I have a PHP Page like :
<HTML>
<HEAD>
<TITLE>Sunny day !</TITLE>
</HEAD>
|
by: D. Alvarado |
last post by:
Hello,
I am trying to find the <TITLE> element of my document. Normally
alert(document.title);
works just fine, but when this statement is within a page that is a
frame in a larger document,...
|
by: Andreas Klemt |
last post by:
Hello,
I have in my strHtml a html page.
so what is the fastest way (with XML Read?) to get the "myValue" between
<title>myValue</title>
Thanks,
Andreas
|
by: Alex |
last post by:
Hi,
is it possible to set the title programatically from the code behind page.
I placed a literal in the head section of the form and set its text
property.
it seemed to work bu the literal...
|
by: DC |
last post by:
In HTML page, I put:
<html>
<head>
<title>Article: <asp:Label ID="lblHTMLTitle"></asp:Label> </title>
....
In the code behind:
....
|
by: Brad |
last post by:
I'm placing a runat=server attribute on the <title> tag in my pages, so I
can read/set the title text in code. The problem is that when I
subsequently change the page in design view VS is...
|
by: Alan Silver |
last post by:
Hello,
I am just experimenting with master pages, and am trying to add a
content placeholder in the <head> section, so that individual pages can
set their own page title and meta tags. The...
|
by: David Thielen |
last post by:
Hi;
If I am using master pages, how do I set the <title> and <meta
name='description' content='my title'> for each page. Obviously each page
will have a different title & description.
--...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
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...
|
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,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
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...
|
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...
|
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...
| |