What is the default ARIA role of a div or span in HTML? Or, in other words, what is the ARIA role of non-interactive elements and the elements that don't have a specific ARIA role assigned to them? Is it none/presentation? Or is it not defined? And if it is, do they have any different meaning than none/presentation?
What is the ARIA role of a div?
3.4k views Asked by Rafid Muhymin Wafi At
1
There are 1 answers
Related Questions in HTML
- How to store a date/time in sqlite (or something similar to a date)
- How to use custom font during html to pdf conversion?
- Storing the preferred font-size in localStorage
- mp4 embedded videos within github pages website not loading
- Scrimba tutorial was working, suddenly stopped even trying the default
- Is there any way to glow this bulb image like a real light bulb
- With non-graphical maps in Leaflet, zoomDelta doesn't work
- What can I do to improve my coding on both html and css
- Uncaught TypeError: google.maps.LatLng is not a constructor at init (script.js:7:13)
- Bootstrap modal not showing at the desired position on a web page when the screen size is smaller
- Displaying a Movie List on a Website Using Jinja2 and Bootstrap
- How to redirect to thank you page after submitting a Google form embedded into a Google Site?
- Storing selected language in localStorage
- Fences (parenthesis, braces) in HTML and MathML
- Understanding Scroll Anchoring Behavoir
Related Questions in ACCESSIBILITY
- Why does getRootInActiveWindow() always returns null in Accessibility Event
- Accessibility : Full keyboard access with scroll view in swiftui
- How to create an overlay window over a certain element via AccessibilityService and scroll it too?
- Problem with Delphi android app and talkback
- How can I get the screen reader to read controls that are not tab stops (e.g. static labels)?
- NVDA is not announcing "dialog" when Modal opens
- Accessibility sequence not working with "HorizontalPager" in Android Jetpack Compose
- Android recyclerview - cant able to navigate items using accessibility focus
- Using aria-describedby to reference description that contains more than just text
- What is the correct usage of aria-describedby?
- How to make related checkboxes accessible using wai-aria tags?
- How to close compose dialog in accessibility mode?
- How do I make an "add to list" pattern accessible for assistive technology users?
- Autogenerate link title based on URL/target for accessibility
- typeViewClicked event is not detected when target window is developed by jetpack compose by my accessibilityservice
Related Questions in WAI-ARIA
- Proper ARIA usage for pop up windows that are triggered by a button
- Using aria-describedby to reference description that contains more than just text
- What is the correct usage of aria-describedby?
- How to make related checkboxes accessible using wai-aria tags?
- Is there a way to make a link appear as plain text on a screen reader but visibly be a link?
- how to add role='columnheader' and aria-sort attributes on <th> instead of <span> element
- Correct Aria Tags?
- HTML Tables A11y: column index in conjuction with column spanning
- Building an accesible navigation bar: drop-down menu displaying a tab list
- Splitting HTML text input into multiple inputs while maintaining accessibility
- Why is aria-live announcing a message twice when I use the mouse but once when I use the keyboard?
- React Native, when to use accessibilityLabel and accessibilityLabelledBy
- How do I give a unique aria label to the checkboxes for React MUI Datagrid row selection?
- Should I use role="button" for a label connected to a checkbox?
- Aria tablist role that contains elements other than tabs
Related Questions in ARIA-ROLE
- Dynamic, client-side update of drop down choices in Django Admin?
- ANDI not recognizing ARIA role-based table rows
- What is the ARIA role of a div?
- Accessibility issue on Mat-chip-list- aria attributes does not match their roles
- Custom select not working while using talkback
- Are column headers essential in an accessible role="grid" setup?
- Why do some sites use role="grid" for things that look like a list?
- Opening ComboBox in Panel, Windows Narrator announces document title
- Is This Error Reported by Siteimprove on WAI-ARIA Criterion 1.3.1 A False Positive?
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
The definitive answer to this and all similar questions can be found in the ARIA in HTML specification. [Note, this is different from the ARIA specification, because ARIA in principle at least can be used in other markup languages, and the ARIA spec itself makes no specific mention of HTML.]
In particular, the table in this section gives the "implicit role" of each HTML element. It makes clear that
divs (andspans too for that matter) have the implicit (= assumed/default) role ofgeneric.Looking that up in the ARIA specification itself, the
genericrole is one that you can't (or at least shouldn't) use yourself as an HTMLroleattribute value - but is strongly related to the roles (that you can use)noneandpresentation. These 2 roles are synonyms of each other, so there is no difference between the two (butpresentationis seen more often, at least in part because it's been around for longer). Both remove all semantic meaning from the element - which means screenreaders and other assistive technologies will read out the content of these elements, including any nested content with a semanticrole, but that thedivelement itself has no semantic meaning. As far as assistive technology is concerned that<div>might as well not be there and just be replaced by whatever its children are. (This is different from marking something witharia-hidden="true"which means neither the element itself nor any of its children will be exposed to assistive technologies - with generic roles the content is still there, it just has no semantics attached.)I'm not 100% clear on what the difference is between the
genericrole andnone/presentation, but the ARIA spec (same section as I linked to above) has this distinction:The difference probably doesn't matter unless you're programming a browser or an assistive technology, as web authors as already mentioned should not use the
genericrole.