473,795 Members | 2,980 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

img title core attribute

Group,

New to this list. I just found out that FireFox does not display the img
alt attribute the same way IE does. I use both browsers to verify that my
pages are readable. Dumb me for not reading all of the reference document.
With this is mind, I need a way to display text in a title attribute,
dynamically. I don't like the idea of going through 100+ pages and making
the changes every time a load new images. Is it possible to have a variable
in the title attribute that will display text from a list in a separate
file? In fact, I'd like to do this with the alt attribute--if either is
possible. That way I'd have to change the core pages once and then edit the
text file as things changed. I guess my idea is somewhat like a CSS page.
I'd also like to keep my image pages strict XHTML with as little Java as
possible. PHP doesn't work on my server and my knowledge of XML is nil.
Thanks in advance for any help you might be able to give me.

Del Ferguson
Jul 23 '05 #1
14 4604
"Del Ferguson" <ra********@cha rter.net> wrote:
I just found out that FireFox does not display the
img alt attribute the same way IE does.
That is correct. I mean the Firefox behavior is correct. This has been
discussed several times, but you might take a look at a treatise on it at
http://www.cs.tut.fi/~jkorpela/html/alt.html#tooltip

To put it briefly, if this change causes problem to your page, then you
have misunderstood the meaning of the alt attribute, and many of your alt
attributes might be worse than useless to them who really need alt
attributes.
Dumb me for not reading all of the
reference document. With this is mind, I need a way to display text in
a title attribute, dynamically.
Do you? Although the title attribute _is_ more or less meant to be used as
a tooltip, do you really _need_ it, and are you _relying_ on it? Besides,
your alt attributes are probably wrong, and this requires attention.
Is it
possible to have a variable in the title attribute that will display
text from a list in a separate file?


No. There are no variables in HTML.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html

Jul 23 '05 #2
On Thu, 13 Jan 2005, Del Ferguson wrote:
New to this list. I just found out that FireFox does not display the img
alt attribute the same way IE does.
Those both sort-of display the alternative text when images are not
being displayed. That's what "alternativ e" primarily means, after
all. IE is a bit crabby if the text is larger than the area of the
image - but the user has the ability to insist (via a fairly obscure
option on the configuration menu) on the whole text being displayed
instead of the image.
I use both browsers to verify that my pages are readable.
That's a bit narrow - only one WWW-conforming graphical browser, and
IE, and nothing else. Nobody expects you to keep a menagerie of
hundreds of browsers on dozens of operating systems, as some
specialists do, but can't you throw your net a /bit/ more widely?
At least include one text-mode browser (Lynx or links or w3m).
With this is mind, I need a way to display text in a title
attribute, dynamically.
I think you're approaching this in the wrong frame of mind. Your job
as an author is supposed to be providing honest content. How that
content is displayed in each and every browsing situation is really up
to the reader.

The "title" attribute is supposed to be available for providing
reasonably short textual information "about" the resource to which
it's applied.

In practice, most graphical browsers will use the "title" attribute
to provide a popup containing the text of the attribute. Is this what
you're hinting that you want?
I don't like the idea of going through 100+ pages and making
the changes every time a load new images.
Eh?
Is it possible to have a variable in the title attribute that will
display text from a list in a separate file?
Not at the WWW interface, no. But you could do it with any of the
many server-side processing facilities - whatever is available on the
server that you use.
In fact, I'd like to do this with the alt attribute--if either is
possible.
Same difference, technically. But please use these attributes for
their proper purposes. IE is only ape-ing an old outdated paradigm
from the now-obsolete Netscape browser series. Modern Mozilla-based
browsers have turned their back on that inappropriate usage, and
rightly so[1]. But if you provide both alt= and title= attributes
then IE will behave appropriately (in the sense of the HTML and WAI
specifications) . It's only if there is no title= attribute that it
falls back to the old and inappropriate behaviour of Netscape <= 4
versions.
That way I'd have to change the core pages once and then edit the
text file as things changed.
Yes, but take care that by making your page dynamic on the server, you
don't destroy cacheability. See Mark Nottingham's tutorial.
I guess my idea is somewhat like a CSS page.
I don't think so. CSS is for presentation /proposals/, which, in the
final analysis, are supposed to be optional. HTML is for providing
real *content*, which browsers (and other kinds of client) are
supposed to render - or otherwise process - according to their
purpose.
I'd also like to keep my image pages strict XHTML with as little
Java as possible.


Java? Who said anything about Java?

I suppose we need to know more about what *is* available on the
swerver that you use. But if push comes to shove, why not use some
kind of pre-processor and generate static pages? At least that way
there will be no risk of damaging the cacheability of your site.

good luck

[1] I think that simplified presentation will suffice for here.
There are detailed considerations on the client side, but they
shouldn't be of primary concern to authors.
Jul 23 '05 #3
Del Ferguson wrote:
Group,

New to this list. I just found out that FireFox does not display the img
alt attribute the same way IE does. I use both browsers to verify that my
pages are readable. Dumb me for not reading all of the reference document.
With this is mind, I need a way to display text in a title attribute,
dynamically. I don't like the idea of going through 100+ pages and making
the changes every time a load new images.


I'm confused--what does your realization that tooltips should be
implemented using the TITLE attribute rather than the ALT attribute have
to do with your need to determine dynamically how those tooltips should
read?
Jul 23 '05 #4

"Jukka K. Korpela" <jk******@cs.tu t.fi> wrote in message
news:Xn******** *************** ******@193.229. 0.31...
"Del Ferguson" <ra********@cha rter.net> wrote:
I just found out that FireFox does not display the
img alt attribute the same way IE does.
That is correct. I mean the Firefox behavior is correct. This has been
discussed several times, but you might take a look at a treatise on it at
http://www.cs.tut.fi/~jkorpela/html/alt.html#tooltip

To put it briefly, if this change causes problem to your page, then you
have misunderstood the meaning of the alt attribute, and many of your alt
attributes might be worse than useless to them who really need alt
attributes.


I read through your document and found it very interesting. I will keep it
bookmarked. My favorite "quick" reference site defines ALT as "bla" and
TITLE as "bla, bla, bla." Your explanation presents the subject in an
entirely different light. I use ALT because it is required for W3C
validation; however, I just describe 100 images and 100 thumbs as Photo 001
through Photo 100.
Dumb me for not reading all of the
reference document. With this is mind, I need a way to display text in
a title attribute, dynamically.
Do you? Although the title attribute _is_ more or less meant to be used as
a tooltip, do you really _need_ it, and are you _relying_ on it? Besides,
your alt attributes are probably wrong, and this requires attention.


It is most likely that I do not really need the TITLE attribute and will
have to find an alternative method of supplying a description to each image
(photograph). The more I thought about it, the more I think that it would
be easier just to provide a 5 element list on each of the 20 thumb index
pages and leave the ALT and TITLE attributes alone.
Is it
possible to have a variable in the title attribute that will display
text from a list in a separate file?


No. There are no variables in HTML.


It would make sense that there wouldn't be, but I thought I'd ask.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html


Regards,

Del Ferguson
Jul 23 '05 #5
"Del Ferguson" <ra********@cha rter.net> writes:
"Jukka K. Korpela" <jk******@cs.tu t.fi> wrote in message
news:Xn******** *************** ******@193.229. 0.31...
That is correct. I mean the Firefox behavior is correct. This has been
discussed several times, but you might take a look at a treatise on it at
http://www.cs.tut.fi/~jkorpela/html/alt.html#tooltip
I read through your document and found it very interesting. I will keep it
bookmarked. My favorite "quick" reference site defines ALT as "bla" and
TITLE as "bla, bla, bla." Your explanation presents the subject in an


Then I *strongly* recommend you find a new favourite quick reference
site. http://www.htmlhelp.com/ is fairly good for looking up tags and
their attributes.
entirely different light. I use ALT because it is required for W3C
validation; however, I just describe 100 images and 100 thumbs as Photo 001
through Photo 100.


Well, your document is then valid (SGML validation merely requires
that alt exists and is a string of some sort) but not conforming to
the specification (which requires that the value be
appropriate). Validation is a useful tool but not the end of it.

There are several documents on the web about how to pick a good alt
attribute - I recommend
http://ppewww.ph.gla.ac.uk/%7Eflavell/alt/alt-text.html

--
Chris
Jul 23 '05 #6

"Alan J. Flavell" <fl*****@ph.gla .ac.uk> wrote in message
news:Pi******** *************** ********@ppepc5 6.ph.gla.ac.uk. ..
On Thu, 13 Jan 2005, Del Ferguson wrote:
New to this list. I just found out that FireFox does not display the img
alt attribute the same way IE does.
Those both sort-of display the alternative text when images are not
being displayed. That's what "alternativ e" primarily means, after
all. IE is a bit crabby if the text is larger than the area of the
image - but the user has the ability to insist (via a fairly obscure
option on the configuration menu) on the whole text being displayed
instead of the image.
I use both browsers to verify that my pages are readable.


That's a bit narrow - only one WWW-conforming graphical browser, and
IE, and nothing else. Nobody expects you to keep a menagerie of
hundreds of browsers on dozens of operating systems, as some
specialists do, but can't you throw your net a /bit/ more widely?
At least include one text-mode browser (Lynx or links or w3m).


I guess I didn't go far enough and explain that I do go to the Cynthia Says
Portal site to check my pages. I also figure that if my pages validate
strict XHTML with W3C and the CSS validates, I'm fairly safe. To be sure,
there will always be one or two that will complain, but I've done my best.
With this is mind, I need a way to display text in a title
attribute, dynamically.


I think you're approaching this in the wrong frame of mind. Your job
as an author is supposed to be providing honest content. How that
content is displayed in each and every browsing situation is really up
to the reader.

The "title" attribute is supposed to be available for providing
reasonably short textual information "about" the resource to which
it's applied.

In practice, most graphical browsers will use the "title" attribute
to provide a popup containing the text of the attribute. Is this what
you're hinting that you want?


This is what I was hinting at; however, it doesn't seem very practical now.
I don't like the idea of going through 100+ pages and making
the changes every time a load new images.
Eh?


What can I say? I'm just a Senior Citizen trying to put a family photo
album online. My mind is ahead of my typing. I meant to say, "...the
changes every time I load new images." I have over 1300 photographs that I
want to put online 100 at a time. This breaks down to 100 image xhtml pages
and 20 thumb index xhtml pages per 100 photographs. I went this way because
I didn't want to use the FRAMES, JAVASCRIPT, PERL, PHP, and non-strict HTML
that so many photo album "wizards" use. I guess I'm stubborn, because
everything must validate strict XHTML with W3C.
Is it possible to have a variable in the title attribute that will
display text from a list in a separate file?


Not at the WWW interface, no. But you could do it with any of the
many server-side processing facilities - whatever is available on the
server that you use.
In fact, I'd like to do this with the alt attribute--if either is
possible.


Same difference, technically. But please use these attributes for
their proper purposes. IE is only ape-ing an old outdated paradigm
from the now-obsolete Netscape browser series. Modern Mozilla-based
browsers have turned their back on that inappropriate usage, and
rightly so[1]. But if you provide both alt= and title= attributes
then IE will behave appropriately (in the sense of the HTML and WAI
specifications) . It's only if there is no title= attribute that it
falls back to the old and inappropriate behaviour of Netscape <= 4
versions.


With my favorite editor it is really no problem to add the TITLE attribute
to each of my files and that will be done as soon as possible. I think the
best route for me to go is to just make a 1200+ line text file of the image
descriptions, copy five descriptions at a time, and paste them as a list to
the appropriate index page. That way, I only have to change 20 pages when I
upload a new group of 100 images. That is about the only way I can think of
to reuse my "core" 120 pages.
That way I'd have to change the core pages once and then edit the
text file as things changed.


Yes, but take care that by making your page dynamic on the server, you
don't destroy cacheability. See Mark Nottingham's tutorial.
I guess my idea is somewhat like a CSS page.


I don't think so. CSS is for presentation /proposals/, which, in the
final analysis, are supposed to be optional. HTML is for providing
real *content*, which browsers (and other kinds of client) are
supposed to render - or otherwise process - according to their
purpose.


A bone-head analogy on my part. I guess I meant it in the context of having
data somewhere else that is presented by the HTML document--somewhat like a
database.
I'd also like to keep my image pages strict XHTML with as little
Java as possible.


Java? Who said anything about Java?


JavaScript, Perl, PHP, XML, etc. Just want to keep my pages simple and
strict XHTML.
I suppose we need to know more about what *is* available on the
swerver that you use. But if push comes to shove, why not use some
kind of pre-processor and generate static pages? At least that way
there will be no risk of damaging the cacheability of your site.

Nothing exotic is available in the server that provides me web space.
good luck

[1] I think that simplified presentation will suffice for here.
There are detailed considerations on the client side, but they
shouldn't be of primary concern to authors.


Cheers,

Del Ferguson
Jul 23 '05 #7

"Harlan Messinger" <hm************ *******@comcast .net> wrote in message
news:34******** *****@individua l.net...
Del Ferguson wrote:
Group,

New to this list. I just found out that FireFox does not display the img
alt attribute the same way IE does. I use both browsers to verify that
my pages are readable. Dumb me for not reading all of the reference
document. With this is mind, I need a way to display text in a title
attribute, dynamically. I don't like the idea of going through 100+
pages and making the changes every time a load new images.


I'm confused--what does your realization that tooltips should be
implemented using the TITLE attribute rather than the ALT attribute have
to do with your need to determine dynamically how those tooltips should
read?


In other replies to my original post I stated that my use of ALT was to
describe the image. Because I had so many images, I didn't want to go
through a multitude of pages changing the ALT statement every time I
uploaded 100 images. My thoughts on ALT and/or TITLE were indeed wrong. As
ALT is required for validation, I will just add TITLE to my existing pages
so that FireFox will display the same way IE does. As for a description of
each image, I think a short list on each image index page will suffice. I
don't think it would be too hard for anyone match the description to the 5
"thumb" images on each index page.

If anyone has a better idea, please let me know.

Regards,

Del Ferguson
Jul 23 '05 #8

"Chris Morris" <c.********@dur ham.ac.uk> wrote in message
news:87******** ****@dinopsis.d ur.ac.uk...
"Del Ferguson" <ra********@cha rter.net> writes:
"Jukka K. Korpela" <jk******@cs.tu t.fi> wrote in message
news:Xn******** *************** ******@193.229. 0.31...
> That is correct. I mean the Firefox behavior is correct. This has been
> discussed several times, but you might take a look at a treatise on it
> at
> http://www.cs.tut.fi/~jkorpela/html/alt.html#tooltip
I read through your document and found it very interesting. I will keep
it
bookmarked. My favorite "quick" reference site defines ALT as "bla" and
TITLE as "bla, bla, bla." Your explanation presents the subject in an


Then I *strongly* recommend you find a new favourite quick reference
site. http://www.htmlhelp.com/ is fairly good for looking up tags and
their attributes.


My above reference came from W3Schools. I like the site because it isn't
too complex. My feeble brain goes into overload at some of the other sites.
Even W3C can give me fits. I'll look into your suggested site.
entirely different light. I use ALT because it is required for W3C
validation; however, I just describe 100 images and 100 thumbs as Photo
001
through Photo 100.
Well, your document is then valid (SGML validation merely requires
that alt exists and is a string of some sort) but not conforming to
the specification (which requires that the value be
appropriate). Validation is a useful tool but not the end of it.

There are several documents on the web about how to pick a good alt
attribute - I recommend
http://ppewww.ph.gla.ac.uk/%7Eflavell/alt/alt-text.html


When you have 1200+ images, "any" easy solution looks good; however ALT and
TITLE seems to be the incorrect way to go.

--
Chris


Cheers,

Del Ferguson
Jul 23 '05 #9
Del Ferguson wrote:
A bone-head analogy on my part. I guess I meant it in the context of having
data somewhere else that is presented by the HTML document--somewhat like a
database.
Oh, now I see what you want.

No, you need program code to do that.
I'd also like to keep my image pages strict XHTML with as little
Java as possible.

HTML 4.01 Strict is a better choice.

Java? Who said anything about Java?

JavaScript, Perl, PHP, XML, etc. Just want to keep my pages simple and
strict XHTML.


You can do it cleanly & simply in PHP. You'll need to learn a little PHP
(but will find tutorials specifically covering photo galleries) & a
server supporting PHP.
Nothing exotic is available in the server that provides me web space.


Change to another? I use one that costs me only about 30ukp per year &
is fine for a low or mid traffic site requiring only reasonable uptime.

Failing that, learn to use a decent text editor which will at least let
you make 'manual' changes to your static pages in a semi automatic
fashion & save you a lot of time in the long run.

--
Michael
m r o z a t u k g a t e w a y d o t n e t
Jul 23 '05 #10

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

Similar topics

3
4684
by: Lars G. Svensson | last post by:
Currently, I'm marking up a few pages in German, containing quite some English abbreviations. The abbreviations are marked up as <abbr> with the appropriate title attribute, and -- when appropriate -- I add a "class='initialism'" to tell speach browers to spell it out rather than to read it as one word (Ben Meadowcroft's idea). Simple example: <abbr title="Hypertext Markup Language" class="initialism">HTML</abbr> Now, the point is,...
5
2746
by: Dave Patton | last post by:
Even after comments in another thread by Alan J. Flavell, I'm not sure I have this straight in my head, so any comments or corrections are welcome :-) If I have: <p> The quick brown fox jumped over the lazy dog. </p> and I change it to: <p>
10
3263
by: Amittai Aviram | last post by:
This XHTML 1.0 Strict page -- http://www.studiolirico.org/docs/settimana2003.html has a bilingual title in Italian and English. The principle language of the page is Italian, so the <html> tag looks like this (w/o the space in the xmlns URL): <html xmlns="h ttp://www.w3.org/1999/xhtml" xml:lang="it" lang="it"> Within the body, I have English translations for all Italian text, and these are always contained within elements that bear the...
8
10652
by: Lian | last post by:
Hi all, It is a newbie's question about html tag "img". The attributes "title" and "alt" for "img" seems having the same function. So what is the main difference between them? Can i use them at the same time and set different values? Thank you for suggestions!
4
15407
by: DU | last post by:
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...
33
3305
by: bissatch | last post by:
Hi, I fully understand the purpose of an alt attribute within a <img> tag but why would you use a title or summary attribute within, for example, a <p> tag. I have read books recommending that I use them but why? Does this enhance accessibility? Please provide reasons why one would want to use these? Thanks Burnsy
3
2203
by: Andy Dingley | last post by:
We've all seen this structure many times: <ul> <li><a href="..." >Click here</a></li> <li><a href="..." >Click here</a></li> </ul> Now it's obvious good practice to have sensible link texts, and also sensible use of title attributes on either the<a> or <li> elements. What's a good rule of thumb for these attributes ?
7
1589
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 removing the runat=server from the <title> tag. Unfortunately it does not do it all the time...maybe 50%. Brad
2
9620
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 Non-visual browsers will read this text to people who are blind. In my attempts to implement this I have found that the ASP.Img control does not have an attribute for title. It is necessary to use the ASP:IMG control instead of the html img tag in...
0
9673
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9522
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10217
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10167
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7544
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5566
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4114
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2922
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.