tailieunhanh - Tự học HTML và CSS trong 1 giờ - part 62

Tham khảo tài liệu 'tự học html và css trong 1 giờ - part 62', công nghệ thông tin, đồ họa - thiết kế - flash phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 586 lesson 19 Designing for the Real World Designing for Accessibility Just as important as taking advantage of the HTML features provided specifically for accessibility is taking care to design your pages in a manner that s as accommodating as possible for users who are in need of assistance. Most of these techniques are relevant to all users not just those using alternative browsers or assistive technologies. Use Color A common pitfall designers fall into is using color to confer meaning to users. For example they print an error on the page and change the font color to red to indicate that something went wrong. Unfortunately visually impaired users can t distinguish your error message from the rest of the text on the page without reading it. Needless to say putting two elements on the page that are the same except for color such as using colors to indicate the status of something is not accessible. You can add borders to elements that need to stand out or you can label them with text. For example you might display an error message this way p class error ERROR You must enter your full name. p Fonts When you specify fonts on your pages you can cause accessibility problems if you re not careful. In some cases font specification doesn t matter at all because the user accesses your site with a screen reader or alternative browser that completely ignores your font settings. However users who simply see poorly can have an unpleasant experience if you set your fonts to an absolute size particularly if you choose a small size. If a user has set his browser s default font to be larger than normal and your pages are hard coded to use 9-point text that user will probably dump your site altogether. In many cases it makes sense to leave the default font specification alone for most of the text on your site. That way users can set their fonts as they choose and you won t interfere with their personal preferences. If you do modify the fonts on the page make sure that the fonts .

crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.