开发者

How to make server side form validation compatible with screen reader

if screen reader fill any content wrong then how to give info (if javascript is disabled) to user to go that field any fill the correct value.

with JavasSript we can show开发者_Go百科 javascript alert but if JavaScript is disabled then?

I need a solution for both ASP.NET 2.0 and PHP.


There are two main things you should do:

Make it clear there was a problem by displaying an information message at the top of the page.

Place error messages inside label elements so they will be read in Forms mode. Make sure you have only one label element per input (some screen readers can't cope with multiple labels).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜