- An attribute used in many Bootstrap components.
- It's a way to make websites more accessible to people with visual impairments and other disabilities.
-
aria-current
===ARIA for navbars/list groups.- This ARIA indicates that an item is currently selected.
"page"
indicates that the item is a page."true"
indicates that the item is currently selected.- Use on elements that can be selected.
- Other valid values for
aria-current=""
:"step"
"location"
"date"
"time"
-
aria-disabled
===ARIA for navbars- This ARIA indicates the status of an item.
"true"
indicates that the item is disabled.- switch it to
"false"
when the item is enabled. - Use on elements that can be disabled and enabled.
-
aria-label=""
===ARIA for alerts.- This ARIA describes an item without a label.
"Close"
is describing a button that has a meaning, but no label.- Use on icons or images that have a meaning but no label.<
<aria-label="close">
- Load the generic-elements.html file from your sandbox.
- In the browser, open the developer tools.
- Go to the Elements tab.
- Accessibility tab.
- Enable full-page accessibility tree.
- Refresh page.
- represents the structure of a web page.
- only includes accessibility elements
- how assistive technologies interpret a web page to a user
<header>
<main>
<footer>
<section>
<h1>
thru<h6>
headings<p>
paragraphs<article></article>
- Use for blog posts, news articles, and other independent self-contained content.
- Example: recipe cards
<section></section>
- Use to enclose themes, categories, and content with headings.
- Example: recipe ingredients, recipe instructions
<dialog></dialog>
- used for a box or window that can be opened or closed.
- Example: Bootstrap alert
- NOTE: use the
open
attribute to show the<dialog>
content.
<output></output>
- use for the result of a calculation or showing feedback.
- Example: "The form has been successfully submitted."
- Attributes that begin with
aria
- aria-current
- aria-disabled
- aria-label
type
- type="password"
- type="tel"
role
- role="alert"
Example: <input type="email">
- url
- tel
- search
- date
- time
- week
- month
- number
- range
- color
- file
- datetime-local
- role="alert"
- any built-in role value
Active Link Link Disabled
- An active item
- A second item
- A third item
- A fourth item
- And a fifth one
Holy guacamole! You should check in on some of those fields below.
Close