E-mail List Archives

Re: error with MAP

for

From: Joel Ward
Date: Jan 25, 2002 2:25PM


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 REMOVED> >
To: "WebAIM forum" < <EMAIL 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...
> >
> > > -----Original Message-----
> > > From: WebAIM forum [mailto: <EMAIL REMOVED> ]On Behalf Of
> > > Joel Ward
> > > Sent: Friday, January 25, 2002 12:44 PM
> > > To: WebAIM forum
> > > Subject: Re: error with MAP
> > >
> > >
> > > 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 REMOVED> >
> > > To: "Kynn Bartlett" < <EMAIL REMOVED> >; "WebAIM accessibility forum"
> > > < <EMAIL 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 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 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/
> > >
> > >
> >
> >
> >
> > ---
> > 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/
>
>



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