473,910 Members | 6,771 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Empty Alt Tags

I'm wondering whether it's better to leave an alt tag blank (alt=" ")
or specify something like "alt='space r'" when referring to objects that
merely help the layout of the page?

-Fleemo

Jul 24 '05 #1
39 5025

<fl******@comca st.net> wrote in message
news:11******** **************@ z14g2000cwz.goo glegroups.com.. .
I'm wondering whether it's better to leave an alt tag blank (alt=" ")
or specify something like "alt='space r'" when referring to objects that
merely help the layout of the page?

-Fleemo


Not sure if it helps for accessibility, but I try to name every alt tag,
even if it just says "border" or "spacer."

Carla
Jul 24 '05 #2
"c.thornqui st" <c.**********@i nsightbb.com> wrote:
<fl******@comc ast.net> wrote in message
news:11******* *************** @z14g2000cwz.go oglegroups.com. ..
I'm wondering whether it's better to leave an alt tag blank (alt=" ")
or specify something like "alt='space r'" when referring to objects that
merely help the layout of the page?

alt=""
Not sure if it helps for accessibility, but I try to name every alt tag,
even if it just says "border" or "spacer."


Use a speaking browser and listen to your page. Does alt="spacer"
improve your experience? Does it help you to comprehend and use the
content of the page?

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net > <http://steve.pugh.net/>
Jul 24 '05 #3
fl******@comcas t.net wrote:
I'm wondering whether it's better to leave an alt tag blank (alt="
") or specify something like "alt='space r'" when referring to
objects that merely help the layout of the page?


First, it's an attribute, not a tag.

Second, don't use it without thinking what it means and what it might
help. There's no pointing in giving an advice about this specific
issue. If you need to ask it, you will get most other alt attributes
wrong too, unless you understand the _idea_ of an alt attribute.

It means a textual alternative to the image, to be actually presented
to the user when the image is not presented. Now imagine yourself
sitting in a completely dark room and listening to a speech synthesizer
that reads a page for you, saying for instance

Advertisement
* Spacer
Home
Page
* Spacer
Health
Data
* Spacer
Topics
List
* Spacer
Media
Center
* Spacer
Information
Products
* Spacer
PAHO
Publishing
* Spacer
Knowledge
Resources

Or how about this (no, I'm not making this up):

Spacer graphic
Spacer graphic

Spacer graphic
Spacer graphic Spacer graphic
Spacer graphic Spacer graphic

[EMBED]
Spacer graphic

What could possibly justify using alt="spacer"? How did people ever get
such an idea?

Well, it _can_ get even worse if you are using alt attributes without
the slightest idea or clue:

your image description here
your image description here
your image description here
your image description here
your image description here
your image description here
[LINK] [LINK] [LINK] [LINK] [LINK] [LINK]

your image description here
your image description here
your image description here
your image description here
your image description here
your image description here
[LINK]
[LINK]
[LINK]
[LINK]
[LINK]
[LINK]
your image description here
your image description here
your image description here
Coming Soon
Coming Soon
Coming Soon

(Sorry for long quotations, but they are part of the point. People
really have to listen to [or read] such nonsense, over and over again,
especially since it's often in a navigation area repeated at the start
of each and every page of a site. And the site may proudly present an
accessibility stamp. Bobby approved, or whatever.)

More on alt attributes: http://www.cs.tut.fi/~jkorpela/html/alt.html

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

Jul 24 '05 #4

"Steve Pugh" <st***@pugh.net > wrote in message
news:15******** *************** *********@4ax.c om...
"c.thornqui st" <c.**********@i nsightbb.com> wrote:
<fl******@com cast.net> wrote in message
news:11****** *************** *@z14g2000cwz.g ooglegroups.com ...
I'm wondering whether it's better to leave an alt tag blank (alt=" ")
or specify something like "alt='space r'" when referring to objects that
merely help the layout of the page?


alt=""
Not sure if it helps for accessibility, but I try to name every alt tag,
even if it just says "border" or "spacer."


Use a speaking browser and listen to your page. Does alt="spacer"
improve your experience? Does it help you to comprehend and use the
content of the page?

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net > <http://steve.pugh.net/>


I had given it a little thought. Very little, so it seems. But for two
reasons I started naming most images 1) so my pages validated at w3.org and
2) because I didn't want those who couldn't see the images to think they
were missing out on anything important. I'll remember to skip alt tags for
unimportant items in the future. I do not use "spacer" in sliced images.

Carla
Jul 24 '05 #5
Els
c.thornquist wrote:
"Steve Pugh" <st***@pugh.net > wrote in message
news:15******** *************** *********@4ax.c om...
"c.thornqui st" <c.**********@i nsightbb.com> wrote:
<fl******@co mcast.net> wrote in message
news:11***** *************** **@z14g2000cwz. googlegroups.co m...
I'm wondering whether it's better to leave an alt tag blank (alt=" ")
or specify something like "alt='space r'" when referring to objects that
merely help the layout of the page?


alt=""
Not sure if it helps for accessibility, but I try to name every alt tag,
even if it just says "border" or "spacer."


Use a speaking browser and listen to your page. Does alt="spacer"
improve your experience? Does it help you to comprehend and use the
content of the page?

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net > <http://steve.pugh.net/>


I had given it a little thought. Very little, so it seems. But for two
reasons I started naming most images 1) so my pages validated at w3.org and
2) because I didn't want those who couldn't see the images to think they
were missing out on anything important. I'll remember to skip alt tags for
unimportant items in the future. I do not use "spacer" in sliced images.


Don't "skip alt tags", but leave them empty. Like Steve already said
up^there: alt="". This way the validator doesn't complain, and the alt
value doesn't get read by a speech browser.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Jul 24 '05 #6

"Jukka K. Korpela" <jk******@cs.tu t.fi> wrote in message
news:Xn******** *************** ******@193.229. 0.31...
fl******@comcas t.net wrote:

snip> Well, it _can_ get even worse if you are using alt attributes without
the slightest idea or clue:

your image description here
your image description here
your image description here
your image description here
your image description here
your image description here
[LINK] [LINK] [LINK] [LINK] [LINK] [LINK]

your image description here
your image description here
your image description here
your image description here
your image description here
your image description here
[LINK]
[LINK]
[LINK]
[LINK]
[LINK]
[LINK]
your image description here
your image description here
your image description here
Coming Soon
Coming Soon
Coming Soon

(Sorry for long quotations, but they are part of the point. People
really have to listen to [or read] such nonsense, over and over again,
especially since it's often in a navigation area repeated at the start
of each and every page of a site. And the site may proudly present an
accessibility stamp. Bobby approved, or whatever.)

More on alt attributes: http://www.cs.tut.fi/~jkorpela/html/alt.html

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

Sounds like a website under construction. Those of us who see pages like
that are equally dismayed.

Are you saying if a page has 3-4 spacers, don't mark them? If so, will the
visitor think there is an image there? You mean they are not aware of images
unless the alt tag tells them?
I thought readers included more info (like image, no alt). Thanks for
explaining how they work.

Carla
Jul 24 '05 #7
In our last episode,
<11************ **********@z14g 2000cwz.googleg roups.com>,
the lovely and talented fl******@comcas t.net
broadcast on comp.infosystem s.www.authoring.html:
I'm wondering whether it's better to leave an alt tag blank (alt=" ")
or specify something like "alt='space r'" when referring to objects that
merely help the layout of the page?


I think it is better to have an empty ALT (alt="") for images
which are purely decorative (srollwork, etc.). Putting a blank
in the ALT makes it show up as something where it is not wanted.

Using images for spacing never was desirable, but when
implimentations of CSS were very spotty, some years back, I
defended it as necessary in some cases. There is no longer any
good reason to use spacer images.

--
Lars Eighner ei*****@io.com http://www.larseighner.com/
Fast, Cheap, Good: Choose any two.
Jul 24 '05 #8
In our last episode,
<nSk3e.17469$NW 5.5789@attbi_s0 2>,
the lovely and talented c.thornquist
broadcast on comp.infosystem s.www.authoring.html:

"Steve Pugh" <st***@pugh.net > wrote in message
news:15******** *************** *********@4ax.c om...
"c.thornqui st" <c.**********@i nsightbb.com> wrote:
<fl******@co mcast.net> wrote in message
news:11***** *************** **@z14g2000cwz. googlegroups.co m...
I'm wondering whether it's better to leave an alt tag blank (alt=" ")
or specify something like "alt='space r'" when referring to objects that
merely help the layout of the page?
alt=""
Not sure if it helps for accessibility, but I try to name every alt tag,
even if it just says "border" or "spacer."


Use a speaking browser and listen to your page. Does alt="spacer"
improve your experience? Does it help you to comprehend and use the
content of the page?

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net > <http://steve.pugh.net/>

I had given it a little thought. Very little, so it seems. But for two
reasons I started naming most images 1) so my pages validated at w3.org and
empty alts will validate (alt=""), leaving alts out altogether
won't.
2) because I didn't want those who couldn't see the images to think they
were missing out on anything important. I'll remember to skip alt tags for
unimportant items in the future. I do not use "spacer" in sliced images.


Most browsers I know of ignore empty alts, leaving nothing to
wonder about.
--
Lars Eighner ei*****@io.com http://www.larseighner.com/
"Shhh! Be vewwy, vewwy quiet! I'm hunting Muswims!"
- President Elmer Bush
Jul 24 '05 #9
"c.thornqui st" <c.**********@i nsightbb.com> wrote in message
news:VZk3e.6213 $kT5.2319@attbi _s21...

"Jukka K. Korpela" <jk******@cs.tu t.fi> wrote in message
news:Xn******** *************** ******@193.229. 0.31...
fl******@comcas t.net wrote:

snip>

Well, it _can_ get even worse if you are using alt attributes without
the slightest idea or clue:

your image description here
your image description here
your image description here
your image description here
your image description here
your image description here
[LINK] [LINK] [LINK] [LINK] [LINK] [LINK]

your image description here
your image description here
your image description here
your image description here
your image description here
your image description here
[LINK]
[LINK]
[LINK]
[LINK]
[LINK]
[LINK]
your image description here
your image description here
your image description here
Coming Soon
Coming Soon
Coming Soon

(Sorry for long quotations, but they are part of the point. People
really have to listen to [or read] such nonsense, over and over again,
especially since it's often in a navigation area repeated at the start
of each and every page of a site. And the site may proudly present an
accessibility stamp. Bobby approved, or whatever.)

More on alt attributes: http://www.cs.tut.fi/~jkorpela/html/alt.html

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

Sounds like a website under construction. Those of us who see pages like
that are equally dismayed.

Are you saying if a page has 3-4 spacers, don't mark them? If so, will the
visitor think there is an image there? You mean they are not aware of
images unless the alt tag tells them?
I thought readers included more info (like image, no alt). Thanks for
explaining how they work.

Carla


If there is no alt attribute, the reader will read the file name (as far as
I can remember, it has been a while since I tested with an actual reader).

Like the others have stated, it is better to use an empty alt attribute (
alt=""") than to leave it out altogether. If an image serves no other use
than decorative (or as a spacer), then an empty alt is the best bet.

--
SamMan
Rip it to reply

Jul 24 '05 #10

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

Similar topics

1
5051
by: Wayno | last post by:
My php logs are coming up empty. I have done all I can think of, and all that made sense to me. Can someone take a look at my php.ini please and tell me what you think may be the problem. I double-checked the path to my error log. It is in /var/www/logs/php_error_log Thanks. :) -Wayne Stevenson
3
8916
by: tornado | last post by:
Hi all, I am pretty new to PHP. I was reading PHP manual and trying out the example from 2nd chapter (A simple Tutorial). When i try to print the variable as given in the example it returns a empty value instead of returning the browser type. Here is the line which i am using in my code and from manual: <?php echo $_SERVER; ?>
13
3416
by: Mikko Ohtamaa | last post by:
From XML specification: The representation of an empty element is either a start-tag immediately followed by an end-tag, or an empty-element tag. (This means that <foo></foo> is equal to <foo/>) From XHTML specification:
13
2344
by: vega | last post by:
How do I detect empty tags if I have the DOM document? For example: <br /> and <br></br> I tried org.w3c.dom.Node.getFirstChild(), it returns null for both <br /> and <br></br> I also tried getNodeValue(), they both returns null also. I know <br /> and <br></br> are the same from the xml spec. Is there any way to tell the different syntax using DOM parser?
18
2447
by: Tjerk Wolterink | last post by:
i have the following rule, <xsl:template match="br"> <br/> </xsl:template> This should convert all <br/> to <br/> but, my transformer transforms it all to
12
17130
by: Stefan Weiss | last post by:
Hi. (this is somewhat similar to yesterday's thread about empty links) I noticed that Tidy issues warnings whenever it encounters empty tags, and strips those tags if cleanup was requested. This is okay in some cases (such as <tbody>), but problematic for other tags (such as <option>). Some tags (td, th, ...) do not produce warnings when they are empty.
2
1778
by: Marcel Balcarek | last post by:
Hi, Is there a way in .NET to convert InnerHtml text e.g. '<B>hello</B>' to 'hello' ?? In IE I can use myiframe.innerText to know whether a field is empty, but in Netscape this method is not available. myiframe.InnerHTML often has leftover html which converts to nothing in the iframe (innertext), but is difficult to test for empty.
5
3690
by: wolf_y | last post by:
My question is simply: under what conditions will empty tags of the form <MOM></MOM> pass schema validation? Of course, the mirror question is: under what conditions will empty tags fail validation? The former seems to be an easier question to answer. XML files will arrive from around the world and must be schema validated before further processing and loading into a database, so I'm trying to foresee the various layouts that might be...
5
10154
by: eggie5 | last post by:
I'm having trouble deserilizing an xml node that has empty tags. See XML: <ContentCampaigns> <ContentCampaign> <ad_id_source type="integer"></ad_id_source> <billing_code type="integer"></billing_code> <birth type="datetime">2007-08-24T16:15:16-07:00</birth> <body>this campaign has alerady been sent</body> <category_id type="integer">1</category_id>
11
3335
by: David | last post by:
Hi All, I am working on a script that is theoreticaly simple but I can not get it to work completely. I am dealing with a page spit out by .NET that leaves empty tags in the markup. I need a javascript solution to go behind and do a clean up after the page loads. The .NET will leave behind any combination of nested tags. Here is an example below. Even though the <spantags are not empty, as they contain <emtags they also need to be...
0
10037
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
9879
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
11349
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9727
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
8099
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
7250
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4776
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
4337
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3360
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.