ALT as required attribute
"Terry Thompson" <[email protected]>
| Newsgroups | gmane.org.w3c.accessibility.general |
|---|---|
| Organization | AccessIT |
| Message-ID | <000201c2cba7$df009710$55cca08c@MH350Athompst3> |
I'm trying to grasp the implications of ALT being a required attribute
in various if not all DTD's of both HTML and XHTML.
If I load the following code in Netscape 7, IE 6, Opera 6.01, or Amaya
7.2, each of these browsers is forgiving of my having omitted an ALT
attribute from my IMG element. This same code doesn't validate, but why
should I be concerned about validation, if so many user agents seemingly
aren't enforcing the requirement?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>No ALT Example</title>
</head>
<body>
<h1>The following image has no ALT:</h1>
<img src="something.jpg" />
</body>
</html>
Thanks for any clarification!
Terry Thompson
AccessIT/DO-IT
The University of Washington
Email: [email protected]
Voice: 206-221-4168
TTY: 206-685-3648
Fax: 206-221-4171
www.washington.edu/accessit
www.washington.edu/doit