Notifies the user of consequences that might arise from an action or event. Examples include warnings, cautions and dangers.
Relation to ARIA
doc-notice inherits its semantics from the a note role.
doc-notice is typically used on
div elements. The role is particularly
useful when color is used as the primary indicator of importance (e.g., warnings might have a
yellow border and dangers red instead of explicit labels).
List of all elements allowed on
- a (without an href attribute)
- img (with alt text)