ARIA Live Regions

ARIA role: log

A region to which chronological entries are appended. Implicit polite live region; append changes rather than replacing the entire log when practical. Explicit roles do not implement visual presentation, interaction or focus management; verify allowed role/element combinations in ARIA in HTML. Accessibility exposure varies with browser, platform and assistive technology. Test relevant combinations; rendering is not proof of accessibility.

Formal Syntax & Structure

html syntaxhtml
role="log"

Parameters & Attributes

NameTypeDescription
roletokenExplicit role token log; use only where allowed. Omit when native semantics match.

Working Example

Example Snippethtml
<div role="log" aria-label="Activity" id="log"></div><button onclick="const p=document.createElement('p');p.textContent='Item saved';document.getElementById('log').append(p)">Add entry</button>
HTML Reference