CKTIS / HTML
HTML concept: accessibility
HTML accessibility combines semantics, naming, state, and keyboard operation so content and controls work across different modes of perception and interaction.
Version: WHATWG HTML Living Standard; index snapshot date recorded separately
Syntax
native semantics + accessible name + operable focusNative button and input elements, an associated label, and contextual alt text supply semantics, states, actions, and names that a user agent can expose. Choose an element by meaning before styling it; visual resemblance does not create a semantic role.
aria-label can provide a name when no visible native label is possible, and role can supplement a custom div, but neither adds activation, validation, focus management, or keyboard behavior. Prefer a native control and do not override compatible native semantics.
Operability includes logical sequential focus, visible focus, keyboard action, and announced state. Test navigation with Tab; disabled and inert intentionally change focus availability, while DOM order can diverge from visual CSS order.
The example observes label association through labels, native input kind through type, and focus through document.activeElement. These DOM signals are not a final accessible-name computation or assistive-technology result; automation does not replace WCAG, keyboard, and screen-reader testing.
Examples
<!doctype html>
<meta charset="utf-8">
<label for="email">Email address</label>
<input id="email" type="email" required>
<button id="save">Save</button>
<output id="result"></output>
<script>
email.focus();
const label = email.labels[0].textContent;
result.textContent = `label=${label}; type=${email.type}; required=${email.required}; focused=${document.activeElement === email}; next=${email.nextElementSibling.localName}`;
</script>
Result
label=Email address; type=email; required=true; focused=true; next=button
The executed example verifies native label association, input state, and focus; it does not claim that those DOM readings alone prove an interface is fully accessible.