Skip to main content
Inspiring
June 15, 2017
Answered

Prompt for alt description in images

  • June 15, 2017
  • 2 replies
  • 3039 views

Version: Dreamweaver CC 2017.5

OS: Windows 10

In previous versions of Dreamweaver you could have the option to prompt for an alt description when inserting a new image. Is this another feature that Adobe has decided to remove or is there a way to get this prompt back?

    This topic has been closed for replies.
    Correct answer Jon Fritz

    Hello Jon,

    img-alt-require rule is from previous version of HTML Linter in Dreamweaver which is not applicable with the current version within Dreamweaver CC 2017.

    I have logged a bug to replace img-alt-require with alt-require in HTML.htmlhintrc.

    You can enable the warnings for missing alt attribute in img tags by adding below rule in HTML.htmlhintrc:

    "alt-require": true

    Regards


    OK, so to fix the problem manually...

    Go to Edit > Preferences
    Choose Linting

    Highlight HTML

    Click Edit & Apply changes

    Change the attribute "img-alt-require" to simply "alt-require" leaving the value as "true"

    Save and close the HTML.htmlhintrc file


    I can report that the above does highlight the line numbers with <img> tags that are missing alt attributes.

    2 replies

    MrhopeAuthor
    Inspiring
    June 15, 2017

    Have been primarily using Dreamweaver CS6.

    Jon Fritz
    Community Expert
    Community Expert
    June 15, 2017

    In CC2017.5, the Linting feature (Edit > Preferences > Linting > HTML) should be drawing attention to missing Alt attributes. If you have Linting turned on, the line number for the <img> tag will turn orange in the Code View window and a small orange circled ! will appear in the bottom of the document window.

    However, for some reason, my CC 2017.5 is not doing that right now (while CC 2015.2 works correctly). I'm wondering if there's a bug in the Linting feature. My "img-alt-require" is set to "true" in the preferences, but the line numbers don't go orange in my missing alt <img> tags.

    EDIT: Preran

    I would have posted this to the uservoice bug site, however, I don't appear to have access to create new threads there under my log-in.

    Preran
    Legend
    June 15, 2017

    That is very strange, Jon. From what I know, Uservoice is a public platform. Anyone should be able to log bugs over there. Let me check with the team and get back to you.

    Thanks,

    Preran

    Jon Fritz
    Community Expert
    Community Expert
    June 15, 2017

    I guess I don't recall DW ever prompting for alt text in anything other than pics with Image Maps on them. It was an obnoxious thing whenever working with DW's map tools that was eventually removed (there was a fair amount of people who wanted it gone in the forums a few years back).

    There was an option under Edit > Preferences >Accessibility to turn it off, but it looks like it has since been removed.


    If you don't mind me asking, what version were you working with before moving to CC2017.5?