随笔分类 -  HTML 5

摘要:For small viewports, we want to save bandwidth and we may be dealing with slow speeds; so it's very important that images' filesizes are not too big. 阅读全文
posted @ 2018-10-22 19:55 Zhentiw 阅读(134) 评论(0) 推荐(0) 编辑
摘要:There are many techniques for hiding content in user interfaces, and not all are created equal! Learn how different hiding techniques in HTML, CSS and 阅读全文
posted @ 2018-04-18 00:27 Zhentiw 阅读(170) 评论(0) 推荐(0) 编辑
摘要:Icon buttons are very common in web applications, yet they often have accessibility problems. Learn how to make your icon buttons accessible to keyboa 阅读全文
posted @ 2018-04-13 17:34 Zhentiw 阅读(201) 评论(0) 推荐(0) 编辑
摘要:See if you can do a better job styling this button using ARIA states. One huge benefit to styling with ARIA is that it provides visual feedback that y 阅读全文
posted @ 2018-03-14 03:43 Zhentiw 阅读(183) 评论(0) 推荐(0) 编辑
摘要:Together 'aria-live', we can use 'aria-atomic', 'aria-relevant' and 'aria-busy' to give more information to screen reader, when should announce the ch 阅读全文
posted @ 2018-03-13 21:09 Zhentiw 阅读(365) 评论(0) 推荐(0) 编辑
摘要:"aria-live" is a method to tell the information to the screen reader once value changed. aria-live has three value: 1. off: nothing will happen 2. pol 阅读全文
posted @ 2018-03-13 20:59 Zhentiw 阅读(2254) 评论(0) 推荐(0) 编辑
摘要:You want to use aria-hidden to prevent screen reader to access some content should be hidden from users. For example, slides, you want to remove previ 阅读全文
posted @ 2018-03-13 03:52 Zhentiw 阅读(2249) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2018-03-12 23:08 Zhentiw 阅读(127) 评论(0) 推荐(0) 编辑
摘要:'aria-labelledby' overwrite 'aria-label' overwirte native element label. TOP-LEFT: aria-label overwrite native element label, so it is Gumnut. TOP-RIG 阅读全文
posted @ 2018-03-12 21:58 Zhentiw 阅读(486) 评论(0) 推荐(0) 编辑
摘要:For some reason, you build a custom checkbox component, if without ARIA in mind, basiclly this site is unusable for screen reader. DEMO site. In the e 阅读全文
posted @ 2018-03-12 18:49 Zhentiw 阅读(150) 评论(0) 推荐(0) 编辑
摘要:Most of times, we need 'alt' to the images, so it can tell the screen reader what is this image about. But sometimes, we can leave alt="", make alt to 阅读全文
posted @ 2018-03-11 04:16 Zhentiw 阅读(126) 评论(0) 推荐(0) 编辑
摘要:For example, when we use checkbox, if we do like this: When we use screen reader, it will lose the semantics meaning, it only say: Instead, we want to 阅读全文
posted @ 2018-03-11 04:07 Zhentiw 阅读(187) 评论(0) 推荐(0) 编辑
摘要:Sometime when some component is offscreen, but still get focus when we tab though the page. This can cause users' confusion. One easy to to find out t 阅读全文
posted @ 2018-03-09 01:36 Zhentiw 阅读(236) 评论(0) 推荐(0) 编辑
摘要:When you developing a complex component by your own, one thing you cannot ignore is Accessibility. Checkout this link. It lists all things you need to 阅读全文
posted @ 2018-03-08 22:32 Zhentiw 阅读(404) 评论(0) 推荐(0) 编辑
摘要:It is a good pratice to add ref="noopener" <a href="/some/domain" target="_blank" rel="noopener" /> Because when the new page is opened, in the new pa 阅读全文
posted @ 2018-03-07 03:10 Zhentiw 阅读(370) 评论(0) 推荐(0) 编辑
摘要:The main reason you want to do I"nlining images with SVG and data URIs" is to reduce http request. If you doing "Inlining images with SVG and data URI 阅读全文
posted @ 2018-02-26 20:12 Zhentiw 阅读(416) 评论(0) 推荐(0) 编辑
摘要:We can use 'setSelectionRange(start, end)' to set cursor postion, in which start postion = end position. 阅读全文
posted @ 2017-07-24 02:28 Zhentiw 阅读(455) 评论(0) 推荐(0) 编辑
摘要:@HostListener('keydown', ['$event', '$event.keyCode']) onKeyDown($event: KeyboardEvent, keyCode) { if(keyCode !== TAB) { $event.preventDefault(); } // get value for the key ... 阅读全文
posted @ 2017-07-24 01:56 Zhentiw 阅读(277) 评论(0) 推荐(0) 编辑
摘要:Something important to consider when coding a web application is managing the user's focus. For keyboard and screen reader users, we must ensure their 阅读全文
posted @ 2017-02-23 19:50 Zhentiw 阅读(185) 评论(0) 推荐(0) 编辑
摘要:You can make any element keyboard interactive with the HTML tabindex attribute. But you might need a little extra JavaScript and ARIA to support keybo 阅读全文
posted @ 2017-02-21 01:29 Zhentiw 阅读(194) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示