W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > July to September 2001

Re: Alt Tags and HTML 4.0

From: Charles McCathieNevile <charles@w3.org>
Date: Thu, 23 Aug 2001 14:14:29 -0400 (EDT)
To: "Michael R. Burks" <mburks952@worldnet.att.net>
cc: WAI IG <w3c-wai-ig@w3.org>
Message-ID: <Pine.LNX.4.30.0108231408370.18788-100000@tux.w3.org>
Yes for the 'img and 'area' (map area) elements. It can be used but is not
required on 'applet' elements (these can have real content, like 'object'
does) nor on 'input' elements (it only makes sense for some types of input

From the HTML 4.01 specification definition of the 'img' element:

<!-- To avoid problems with text-only UAs as well as
   to make image content understandable and navigable
   to users of non-visual UAs, you need to provide
   a description with ALT, and avoid server-side image maps -->
<!ELEMENT IMG - O EMPTY                -- Embedded image -->
  %attrs;                              -- %coreattrs, %i18n, %events --
  src         %URI;          #REQUIRED -- URI of image to embed --
  alt         %Text;         #REQUIRED -- short description --
  longdesc    %URI;          #IMPLIED  -- link to long description
                                          (complements alt) --
  name        CDATA          #IMPLIED  -- name of image for scripting --
  height      %Length;       #IMPLIED  -- override height --
  width       %Length;       #IMPLIED  -- override width --
  usemap      %URI;          #IMPLIED  -- use client-side image map --
  ismap       (ismap)        #IMPLIED  -- use server-side image map --

This means that the attributes 'alt' and 'src' are required to be valid, and
that there are some other attributes (including %coreattrs, %i18n, and
%events which together add things like the ability to add onfocus, lang or
title attributes) that can be used.



On Thu, 23 Aug 2001, Michael R. Burks wrote:


  does HTML 4.0 Require the use of Alt tags to be valid code?


  Mike Burks

Charles McCathieNevile    http://www.w3.org/People/Charles  phone: +61 409 134 136
W3C Web Accessibility Initiative     http://www.w3.org/WAI    fax: +1 617 258 5999
Location: 21 Mitchell street FOOTSCRAY Vic 3011, Australia
(or W3C INRIA, Route des Lucioles, BP 93, 06902 Sophia Antipolis Cedex, France)
Received on Thursday, 23 August 2001 14:14:30 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 13 October 2015 16:21:14 UTC