img
elements is not placeholder text unless author has confirmed it is correct.
img
element cannot have alt
attribute value of "nbsp" or "spacer".
Question | Is the Alt text appropriate for the image? |
---|---|
PASS | Alt text is appropriate for the image. |
FAIL | Alt text is not appropriate for the image. |
img
element and compare its alt
attribute value to the list of placeholder values.alt
attribute placeholder values are: 'nbsp', 'spacer' and src
attribute value (filename).img
elements is not placeholder text or user has confirmed that the Alt text is appropriate.alt
attribute value or confirm that current value is appropriate for the associated image.img
has alt text that does not contain any placeholder text.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/xhtml; charset=UTF-8" /> <title>OAC Testfile - Check #6 - Negative</title> </head> <body> <p><img src="rex.jpg" alt="Photo of a brown and black cat named Rex."/></p> </body> </html>
img
has alt text of 'spacer'.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/xhtml; charset=UTF-8" /> <title>OAC Testfile - Check #6 - Positive</title> </head> <body> <p><img src="rex.jpg" alt="spacer" width="150" height="105"/></p> </body> </html>