WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. awallin
    Member
    Posted 7 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
    moderator
    Posted 7 years ago #

    You can do it with a plugin such as Image Manager:
    http://www.soderlind.no/archives/2006/01/03/imagemanager-20/
    There are many more you might like better:
    http://codex.wordpress.org/Plugins/Images

  3. AzraelUK
    Member
    Posted 7 years ago #

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

  4. illovich
    Member
    Posted 7 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

Tags