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: tft@u.washington.edu Voice: 206-221-4168 TTY: 206-685-3648 Fax: 206-221-4171 www.washington.edu/accessit www.washington.edu/doitReceived on Monday, 3 February 2003 12:17:58 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 19 July 2011 18:14:08 GMT