WebAIM - Web Accessibility In Mind

E-mail List Archives

Thread: error with MAP

for

Number of posts in this thread: 11 (In chronological order)

From: Glenda Watson Hyatt
Date: Fri, Jan 25 2002 1:21PM
Subject: error with MAP
No previous message | Next message →

I'm using MAP for a navigation bar, as suggested by one of the web
accessibility sites.

Here is my code:

<!-- Navigation Bar -->
<MAP title="Navigation Bar">
<P CLASS="navbar">[<a href="toc.htm">Contents</a>] [<a
href="question1.htm">Question 1</a>] [<a href="question3.htm">Question
3</a>] [<a href="glossary.htm">Glossary</a>]</p>
</map>

However, I get this error when validating the code:

<MAP title="Navigation Bar">
Error: required attribute "NAME" not specified

Where did I go wrong? Should title be NAME?

This is rather urgent as the Simplified Web Accessibility Guide goes to
print today. Help.

Cheers,
Glenda
*********
Glenda Watson Hyatt
Soaring Eagle Communications
"Creating freedom and power through accessible communications"
E Mail: mailto: = EMAIL ADDRESS REMOVED =
Website: http://www.eaglecom.bc.ca
Want to know how to make your website accessible to more people?
Subscribe to our FREE newsletter by emailing
mailto: = EMAIL ADDRESS REMOVED =

*********




---
To subscribe, unsubscribe, or view list archives,
visit http://www.webaim.org/discussion/


From: Kynn Bartlett
Date: Fri, Jan 25 2002 1:25PM
Subject: Re: error with MAP
← Previous message | Next message →

At 12:21 PM -0800 1/25/02, Glenda Watson Hyatt wrote:
>I'm using MAP for a navigation bar, as suggested by one of the web
>accessibility sites.
>
>Here is my code:
><!-- Navigation Bar -->
><MAP title="Navigation Bar">
><P CLASS="navbar">[<a href="toc.htm">Contents</a>] [<a
>href="question1.htm">Question 1</a>] [<a href="question3.htm">Question
>3</a>] [<a href="glossary.htm">Glossary</a>]</p>
></map>
>However, I get this error when validating the code:
><MAP title="Navigation Bar">
>Error: required attribute "NAME" not specified
>Where did I go wrong? Should title be NAME?
>
>This is rather urgent as the Simplified Web Accessibility Guide goes to
>print today. Help.

The NAME attribute is roughly equivalent to the ID attribute, not the
TITLE attribute. ID and NAME are both computer-readable tokens used
for hypertext links and the like. TITLE is a human-readable optional
label.

NAME is used in the IMG tag when you're making an imagemap, to tell
the browser which MAP to use. You probably want something
like:

<map title="Navigation Bar" name="navbar">

I personally am doubtful of the utility of using imagemap code to
mark up navigation bars, myself, but it probably isn't harmful.

--Kynn

--
Kynn Bartlett < = EMAIL ADDRESS REMOVED = > http://kynn.com
Chief Technologist, Idyll Mountain http://idyllmtn.com
Web Accessibility Expert-for-hire http://kynn.com/resume
January Web Accessibility eCourse http://kynn.com/+d201
Forthcoming: Teach Yourself CSS in 24 Hours


---
To subscribe, unsubscribe, or view list archives,
visit http://www.webaim.org/discussion/


From: Sarah Kuehnle
Date: Sat, Jan 26 2002 2:26AM
Subject: Re: error with MAP
← Previous message | Next message →

You need the attribute "name" instead of "title"..that should do it :-)
http://www.w3.org/TR/html4/struct/objects.html#h-13.6.1

Best Regards,
Sarah Kuehnle


----- Original Message -----
From: "Glenda Watson Hyatt" < = EMAIL ADDRESS REMOVED = >
To: "Kynn Bartlett" < = EMAIL ADDRESS REMOVED = >; "WebAIM accessibility forum"
< = EMAIL ADDRESS REMOVED = >
Sent: Friday, January 25, 2002 3:21 PM
Subject: error with MAP


> I'm using MAP for a navigation bar, as suggested by one of the web
> accessibility sites.
>
> Here is my code:
>
> <!-- Navigation Bar -->
> <MAP title="Navigation Bar">
> <P CLASS="navbar">[<a href="toc.htm">Contents</a>] [<a
> href="question1.htm">Question 1</a>] [<a href="question3.htm">Question
> 3</a>] [<a href="glossary.htm">Glossary</a>]</p>
> </map>
>
> However, I get this error when validating the code:
>
> <MAP title="Navigation Bar">
> Error: required attribute "NAME" not specified
>
> Where did I go wrong? Should title be NAME?
>
> This is rather urgent as the Simplified Web Accessibility Guide goes to
> print today. Help.
>
> Cheers,
> Glenda
> *********
> Glenda Watson Hyatt
> Soaring Eagle Communications
> "Creating freedom and power through accessible communications"
> E Mail: mailto: = EMAIL ADDRESS REMOVED =
> Website: http://www.eaglecom.bc.ca
> Want to know how to make your website accessible to more people?
> Subscribe to our FREE newsletter by emailing
> mailto: = EMAIL ADDRESS REMOVED =
>
> *********
>
>
>
>
> ---
> To subscribe, unsubscribe, or view list archives,
> visit http://www.webaim.org/discussion/
>
>



---
To subscribe, unsubscribe, or view list archives,
visit http://www.webaim.org/discussion/


From: Joel Ward
Date: Fri, Jan 25 2002 1:44PM
Subject: Re: error with MAP
← Previous message | Next message →

Hi Glenda,

I suggest using DIV. MAP is a tag for image maps; you have a simple text
navigation bar. I'm sure MAP probably won't hurt, but I don't think this
was the intention of the MAP tag.

You can use TITLE attribute with the DIV:

<DIV title="Navigation Bar">
<P CLASS="navbar">[<a href="toc.htm">Contents</a>] [<a
href="question1.htm">Question 1</a>] [<a href="question3.htm">Question
3</a>] [<a href="glossary.htm">Glossary</a>]</p>
</DIV>

What is the reason for using MAP? Which site did you find that on? I'm
curious why that was suggested.

Joel

----- Original Message -----
From: "Glenda Watson Hyatt" < = EMAIL ADDRESS REMOVED = >
To: "Kynn Bartlett" < = EMAIL ADDRESS REMOVED = >; "WebAIM accessibility forum"
< = EMAIL ADDRESS REMOVED = >
Sent: Friday, January 25, 2002 3:21 PM
Subject: error with MAP


> I'm using MAP for a navigation bar, as suggested by one of the web
> accessibility sites.
>
> Here is my code:
>
> <!-- Navigation Bar -->
> <MAP title="Navigation Bar">
> <P CLASS="navbar">[<a href="toc.htm">Contents</a>] [<a
> href="question1.htm">Question 1</a>] [<a href="question3.htm">Question
> 3</a>] [<a href="glossary.htm">Glossary</a>]</p>
> </map>
>
> However, I get this error when validating the code:
>
> <MAP title="Navigation Bar">
> Error: required attribute "NAME" not specified
>
> Where did I go wrong? Should title be NAME?
>
> This is rather urgent as the Simplified Web Accessibility Guide goes to
> print today. Help.
>
> Cheers,
> Glenda
> *********
> Glenda Watson Hyatt
> Soaring Eagle Communications
> "Creating freedom and power through accessible communications"
> E Mail: mailto: = EMAIL ADDRESS REMOVED =
> Website: http://www.eaglecom.bc.ca
> Want to know how to make your website accessible to more people?
> Subscribe to our FREE newsletter by emailing
> mailto: = EMAIL ADDRESS REMOVED =
>
> *********
>
>
>
>
> ---
> To subscribe, unsubscribe, or view list archives,
> visit http://www.webaim.org/discussion/
>
>



---
To subscribe, unsubscribe, or view list archives,
visit http://www.webaim.org/discussion/


From: Glenda Watson Hyatt
Date: Fri, Jan 25 2002 1:52PM
Subject: RE: error with MAP
← Previous message | Next message →


Thanks Joel -- don't remember which site -- bobby, webaim, jimthatcher<?>
or...

>

From: Glenda Watson Hyatt
Date: Fri, Jan 25 2002 2:10PM
Subject: RE: error with MAP
← Previous message | Next message →


My apologies to bobby, webaim, jimthatcher<?>.

It is on the WAI site! At
http://www.w3.org/TR/WCAG10-HTML-TECHS/#group-bypass. Glad to discover
their examples use valid HTML!


>
>
> Thanks Joel -- don't remember which site -- bobby, webaim, jimthatcher<?>
> or...
>
> >

From: Jon Gunderson
Date: Fri, Jan 25 2002 2:20PM
Subject: RE: error with MAP
← Previous message | Next message →

Use of MAP provides structural information that a collection of links are
related. The benefit of using MAP is that in the future browsers can
include functions for people to directly navigate (move focus to) or skip
the links contained in a MAP element. Similar to using headers.

Use NAME instead of TITLE to label the collection of links.

Jon


At 12:52 PM 1/25/2002 -0800, you wrote:

>Thanks Joel -- don't remember which site -- bobby, webaim, jimthatcher<?>
>or...
>
> >

From: Joel Ward
Date: Fri, Jan 25 2002 2:25PM
Subject: Re: error with MAP
← Previous message | Next message →

According to the HTML 4.01 definition of MAP, it says:

"The MAP element may be used without an associated image for general
navigation mechanisms."
http://www.w3.org/TR/html401/struct/objects.html#edef-MAP

It also says that the NAME attribute is required, and TITLE is optional.

So, on the one hand their example is valid in using MAP to markup the
navigation bar. However, their example should have included a NAME
attribute to make it technically valid, even if an image is not associated
with the MAP.

I see Jon's point. The WAI example is still technically incorrect,
according to HTML 4.01. Use NAME with or instead of TITLE, or use a DIV
with TITLE.

Joel



----- Original Message -----
From: "Glenda Watson Hyatt" < = EMAIL ADDRESS REMOVED = >
To: "WebAIM forum" < = EMAIL ADDRESS REMOVED = >
Sent: Friday, January 25, 2002 4:10 PM
Subject: RE: error with MAP


>
> My apologies to bobby, webaim, jimthatcher<?>.
>
> It is on the WAI site! At
> http://www.w3.org/TR/WCAG10-HTML-TECHS/#group-bypass. Glad to discover
> their examples use valid HTML!
>
>
> >
> >
> > Thanks Joel -- don't remember which site -- bobby, webaim,
jimthatcher<?>
> > or...
> >
> > >

From: Glenda Watson Hyatt
Date: Fri, Jan 25 2002 2:31PM
Subject: RE: error with MAP
← Previous message | Next message →


would a screen reader read NAME? Is using both wrong, considering the
current technology? I need to hit SEND soon.

I love how there's no one answer. And outsiders think web accessibility is
clear cut!
>
>
> Use of MAP provides structural information that a collection of links are
> related. The benefit of using MAP is that in the future browsers can
> include functions for people to directly navigate (move focus to) or skip
> the links contained in a MAP element. Similar to using headers.
>
> Use NAME instead of TITLE to label the collection of links.
>
> Jon
>
>
> At 12:52 PM 1/25/2002 -0800, you wrote:
>
> >Thanks Joel -- don't remember which site -- bobby, webaim, jimthatcher<?>
> >or...
> >
> > >

From: kynn
Date: Fri, Jan 25 2002 2:55PM
Subject: Re: error with MAP
← Previous message | Next message →

> would a screen reader read NAME? Is using both wrong, considering the
> current technology? I need to hit SEND soon.

NAME isn't meant to be read. It's for machine (browser) use, not for
human use.

I'm not sure if any browsers currently do anything special with <map>--
all I've heard is "future browsers." So i am not sure if doing it this
way will actually have any immediate accessibility effects in existing
screenreaders.

Does anyone know more about this, regarding how screenreaders use
<map>?

> I love how there's no one answer. And outsiders think web accessibility is
> clear cut!

So do insiders.

--Kynn



---
To subscribe, unsubscribe, or view list archives,
visit http://www.webaim.org/discussion/


From: Jon Gunderson
Date: Mon, Jan 28 2002 7:19AM
Subject: RE: error with MAP
← Previous message | No next message

I don't know of any AT or main stream browsers that currently provide any
additional functionality for access to the MAP element, either navigation
or reading the NAME or TITLE attribute. The main point of using MAP now is
to get it in common usage, so that developers will see a value in providing
the additional functionality. It is also important for people to encourage
developers to provide features that support access to the MAP element.

It is important to note that both TITLE and NAME should be defined to have
both a valid and more accessible document.

1. TITLE should be used to give a label to the purpose of the links
contained within the MAP block. For example "Navigation Bar", "Site Map"
or "My Favorite Links". Since this is the main mechanism to provided
additional information about an HTML element.

2. NAME seems to be similar to the NAME attribute in the INPUT and Anchor
element. It was originally designed to be a reference to an image or as an
internal link, which has been superceded by the id element, but it is used
by authors for backward compatibility. The NAME attribute has a number of
restrictions on the types of characters that it can contain[1], so TITLE
can be used to provide a more meaningful description, since it does not
have the same restrictions on characters as NAME. But NAME is required for
the document to be valid. So if there is not image, NAME could be defined
as "links" or something that is still slightly meaningful.

Jon

[1] http://www.w3.org/TR/html401/types.html#type-cdata

At 01:31 PM 1/25/2002 -0800, Glenda Watson Hyatt wrote:

>would a screen reader read NAME? Is using both wrong, considering the
>current technology? I need to hit SEND soon.
>
>I love how there's no one answer. And outsiders think web accessibility is
>clear cut!
> >
> >
> > Use of MAP provides structural information that a collection of links are
> > related. The benefit of using MAP is that in the future browsers can
> > include functions for people to directly navigate (move focus to) or skip
> > the links contained in a MAP element. Similar to using headers.
> >
> > Use NAME instead of TITLE to label the collection of links.
> >
> > Jon
> >
> >
> > At 12:52 PM 1/25/2002 -0800, you wrote:
> >
> > >Thanks Joel -- don't remember which site -- bobby, webaim, jimthatcher<?>
> > >or...
> > >
> > > >