Welcome, If you are using a screen reader we recommend switching to “Full Access Mode”. This mode is designed to help different types of navigation:
Each page is divided into sections and each section is described by a title (headings navigation).The most important sections are assigned to a role (landmark navigation).On the top of each page you will find the quick links menu (internal link navigation). Each link is assigned to an accesskey (keyboard shortcut).
Bạn đang xem: Aria-hidden là gì
Bạn đang xem: Aria-hidden là gì
Night mode. Night mode: this mode sets low luminance. It increases readability in dark environments. It is also useful for some people with reading disabilities such as dyslexia.
Best PracticesDesignEditorial & LanguageElements & WidgetsFormsStructureTablesARIAAbout Accessibility
Characteristics
Type:
String
See Related:
aria-disabled
Used in Roles:
All elements of the base markup (Global)No role required
Value:
true/falsetrue:Indicates that this section of the document and its children are hidden.false (default):Indicates that this section of the document is visible.
Indicates that theelementand all of its descendants are not visible orperceivabletoanyuser as implemented by the author.
If an element is only visible after some web10_user action, authors mustset thearia-hiddenattributetotrue. When the element is presented, authors mustset thearia-hidden attribute tofalseor remove the attribute, indicating that the element is visible.
Some assistive technologies access ariainformation directly through theDOMand not through platform Supported by user’s assistive technologies as well as the accessibility features in browsers and other web10_user agents.
” data-tiptheme=”tipthemeflatdarklight”data-tipdelayclose=”500″data-tipeventout=”mouseout”data-tipmouseleave=”false”data-tipcontent=”html” class=”jqeasytooltip jqeasytooltip1″ id=”jqeasytooltip1″ title=”Accessibility Supported”>accessibility supported by the browser. Authors mustsetaria-hidden=”true”on content that is not displayed, regardless of the mechanism used to hide it. This allowsassistive technologiesoruser agentsto properly skiphiddenelements in the document.
Xem thêm: Vì Sao Tôi Tên Nguyễn Đình Tôn Nữ, Nguyễn Đình Tôn Nữ
It is recommended that authors key visibility of elements off this attribute, rather than change visibility and separately have to remember to update this property. CSS 2 provides a way toselect on attribute values. The followingCSSdeclaration makes content visible unless thearia-hiddenattribute istrue; scripts need only update thevalueof this attribute to change visibility:
{ visibility: hidden; }Note: Authors are reminded thatvisibility:hiddenanddisplay:noneapply toallCSSmedia types; therefore, use of either will hide the content from assistive technologies that access the DOM through a rendering engine.
However, in order to support assistive technologies that access the DOM directly, or other authoring techniques to visiblyhidecontent (for example, opacity oroff-screen positioning), authors need to ensure thearia-hiddenattribute is always updated accordingly when an element is shown or hidden, unless the intent of using off-screen positioning is to make the content visible only to screen reader users and not others.
Authors may, with caution, use aria-hidden to hide visibly rendered content from assistive technologiesonlyif the act of hiding this content is intended to improve the experience for users of assistive technologies by removing redundant or extraneous content.
Authors using aria-hidden to hide visible content from screen readers mustensure that identical or equivalent meaning and functionality is exposed to assistive technologies.
Note: Authors are advised to use extreme caution and consider a wide range of disabilities when hiding visibly rendered content from assistive technologies. For example, a sighted, dexterity-impaired individual may use voice-controlled assistive technologies to access a visual interface.
If an author hides visible link text “Go to checkout” and exposes similar, yet non-identical link text “Check out now” to the Operating systems and other platforms provide a set of interfaces that expose information aboutobjectsandeventstoassistive technologies. Assistive technologies use these interfaces to get information about and interact with thosewidgets. Examples of accessibility APIs are theMicrosoft Active Accessibility, theMicrosoft User Interface Automation, theMacOS XAccessibility Protocol, theLinux/Unix Accessibility Toolkit andAssistive Technology Service Provider Interface, andIAccessible2.
” data-tiptheme=”tipthemeflatdarklight”data-tipdelayclose=”500″data-tipeventout=”mouseout”data-tipmouseleave=”false”data-tipcontent=”html” class=”jqeasytooltip jqeasytooltip0″ id=”jqeasytooltip0″ title=”Accessibility API”>accessibility API, the web10_user may be unable to access the interface they perceive using voice control. Similar problems may also arise for screen reader users. For example, a sighted telephone support technician may attempt to have the blind screen reader web10_user click the “Go to checkout” link, which they may be unable to find using a type-ahead item search (“Go to…”).
Note: Authors are advised to avoid usingaria-hidden=”false”with styles or attributes that have historically prevented rendering in all modalities, such as display:noneorvisibility:hiddenin CSS, or thehiddenattribute in HTML 5.
At the time of this writing,aria-hidden=”false”is known to work inconsistently when used in conjunction with such features. As future implementations improve, use caution and test thoroughly before relying on this approach.
Note: For cross-browser compatibility, always use the ariaattribute syntax to access and modify ariaproperties, for exampleobject.setAttribute(“aria-valuenow”, newValue).
Syntax
HTMLJavaScriptobject.setAttribute(“aria-hidden”,value);var value = object.getAttribute(“aria-hidden”);Microsoft Active Accessibility Properties: