automatic alt="pic.jpg" (4 posts)

  1. awallin
    Posted 9 years ago #

    Hi All,

    My wordpress blog otherwise passes the XHTML validator, except all IMG tags lack the required ALT specification because I haven't bothered to insert any text in the ALT field when writing my posts.
    Would it be possible for wordpress to automatically ad an ALT description (if none give by user) which would for example be the filename of the picture ?

  2. Samuel B

    Posted 9 years ago #

    You can do it with a plugin such as Image Manager:
    There are many more you might like better:

  3. AzraelUK
    Posted 9 years ago #

    I always do the XHTML myself, and just put in alt="". That shuts the validator up.

  4. illovich
    Posted 9 years ago #

    The basic standard for accessibility as far as I understand it is:

    • Pictures that convey information (even illustrative) should have an alt tag with meaningful information
    • Purely decorative pictures should have an 'alt=" "' tag - the space basically tells the screen reader to skip the image entirely.

    So I would recommend the feature you're requesting put an alt=" " in img tags instead of a filename, because the filename is just going to be annoying to screenreader users.

Topic Closed

This topic has been closed to new replies.

About this Topic