input
element - Alt text should not be the same as the filename.
input
element - Suspicious Alt text (same as filename).
input
elements cannot have alt
attribute values that are the same as their src
attribute values.
Question | Is this Alt text appropriate for the image? |
---|---|
PASS | Alt text is appropriate for the image. |
FAIL | Alt text is not appropriate for the image. |
input
elements that have a type
attribute value of "image".alt
attribute value of the input
element.src
attribute value of the input
element.alt
attribute value is expected to be different from the src
attribute value.alt
attribute value or confirm that the current alt
attribute value is appropriate for the image.input
alt
attribute is different from the src
attribute.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd"> <html lang="en"> <head> <title>OAC Testfile - Check #61 - Negative</title> </head> <body> <form> <label for="name">Name</label>: <br/><br/><input type="image" name="name" id="name" src="input.jpg" alt="input name"> </form> </body> </html>
input
alt
attribute is same as the src
attribute.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd"> <html lang="en"> <head> <title>OAC Testfile - Check #61 - Positive</title> </head> <body> <form> <label for="name">Name</label>: <br/><br/><input type="image" name="name" id="name" src="name.jpg" alt="name.jpg"> </form> </body> </html>