diff --git a/content/docs/accessibility.md b/content/docs/accessibility.md index e6cacba3b..57e81424d 100644 --- a/content/docs/accessibility.md +++ b/content/docs/accessibility.md @@ -3,31 +3,39 @@ id: accessibility title: Accessibility permalink: docs/accessibility.html --- +## Tại sao là Accessibility? {#why-accessibility} -## Why Accessibility? {#why-accessibility} +Web accessibility (cũng được đề cập ở đây +[**a11y**](https://en.wiktionary.org/wiki/a11y)) là sự thiết kế và tạo dựng website +sao cho tất cả mọi người đều có thể sử dụng được. Sự hỗ trợ của Accessibility +cho phép các công nghệ hỗ trợ có thể sử dụng trong các trang web. -Web accessibility (also referred to as [**a11y**](https://en.wiktionary.org/wiki/a11y)) is the design and creation of websites that can be used by everyone. Accessibility support is necessary to allow assistive technology to interpret web pages. - -React fully supports building accessible websites, often by using standard HTML techniques. - -## Standards and Guidelines {#standards-and-guidelines} +React hỗ trợ đầy đủ để bạn thực hiện được điều này, bằng +cách sử dụng các kỹ thuật HTML chuẩn. +## Tiêu chuẩn và Hướng dẫn {#standards-and-guidelines} ### WCAG {#wcag} - -The [Web Content Accessibility Guidelines](https://www.w3.org/WAI/intro/wcag) provides guidelines for creating accessible web sites. - -The following WCAG checklists provide an overview: - -- [WCAG checklist from Wuhcag](https://www.wuhcag.com/wcag-checklist/) -- [WCAG checklist from WebAIM](https://webaim.org/standards/wcag/checklist) -- [Checklist from The A11Y Project](https://a11yproject.com/checklist.html) - +[Hướng dẫn Web Content +Accessibility](https://www.w3.org/WAI/intro/wcag) cung cấp hướng dẫn để bạn tạo +được những trang web có khả năng truy cập. + +Danh sách WCAG sau đây cho bạn một cái nhìn tổng quan: + +- [Danh sách WCAG từ +Wuhcag](https://www.wuhcag.com/wcag-checklist/) +- [Danh sách WCAG từ +WebAIM](https://webaim.org/standards/wcag/checklist) +- [Danh sách từ dự án +A11Y](https://a11yproject.com/checklist.html) ### WAI-ARIA {#wai-aria} - -The [Web Accessibility Initiative - Accessible Rich Internet Applications](https://www.w3.org/WAI/intro/aria) document contains techniques for building fully accessible JavaScript widgets. - -Note that all `aria-*` HTML attributes are fully supported in JSX. Whereas most DOM properties and attributes in React are camelCased, these attributes should be hyphen-cased (also known as kebab-case, lisp-case, etc) as they are in plain HTML: - +[Sáng kiến Web Accessibility - Truy cập trang web giàu ứng dụng](https://www.w3.org/WAI/intro/aria) +tài liệu có chứa nhiều kỹ thuật để bạn có thể xây dựng các JavaScript widgets +có thể truy cập. + +Chú ý rằng tất cả thuộc tính HTML `aria-*` đều được hỗ trợ đầy +đủ trong JSX. Trong khi hầu hết DOM properties và thuộc tính trong React là +camelCased, những thuộc tính đó nên được gạch-nối (hay còn gọi là kebab-case, +lisp-case, etc) giống như trong HTML thuần. ```javascript{3,4} ``` - -## Semantic HTML {#semantic-html} -Semantic HTML is the foundation of accessibility in a web application. Using the various HTML elements to reinforce the meaning of information -in our websites will often give us accessibility for free. - -- [MDN HTML elements reference](https://developer.mozilla.org/en-US/docs/Web/HTML/Element) - -Sometimes we break HTML semantics when we add `
` elements to our JSX to make our React code work, especially when working with lists (`
    `, `