Alt? Longdesc? Title? What goes where, especially for image-heavy sites?

前端 未结 5 1805
伪装坚强ぢ
伪装坚强ぢ 2021-01-02 01:08

So I\'ve been trying to make my site as accessible as possible (for non-JavaScript users, web crawlers, screen readers, etc), and I hit a large snag.

The site I\'m d

5条回答
  •  感动是毒
    2021-01-02 01:36

    I think adding in descriptive text in a

    is a good idea. There is of course the problem with browser support, this should be able to be addressed with CSS:

    figcaption { display: block; }

    You could then hide this text by default figcaption { display: none; } and include a link somewhere that will refresh the page with the captions displayed through an alternative style - figcaption { display: block; }

    This option then eliminates the need for javascript solutions and only gives captions to those that specifically request them.

    You could maybe set this up with a little bit of php:

    
        
    
    

    HTML Link - Show captions

    This is completely off the top of my head :) Let me know if I can better explain anything.

提交回复
热议问题