CSS speak Property
How to use the speak CSS property to make the element render aurally. Read about the property and see values.
Note: The
speakproperty is obsolete and has very limited browser support. Consider using modern accessibility APIs for aural rendering.
The speak property defines whether or not the text should be rendered aurally.
It has six values. The following values are specified in CSS2.1:
nonenormalspell-out
Additional values are defined in the CSS Speech Module:
autoneveralways
| Initial Value | normal |
|---|---|
| Applies to | All elements. |
| Inherited | Yes. |
| Animatable | No. |
| Version | CSS2, CSS Speech Module |
| DOM Syntax | element.style.speak = "always"; |
Syntax
CSS speak syntax
speak: auto | normal | spell-out | none | never | always | initial | inherit;You can insert the following piece of code with the speak property in your CSS code:
CSS speak code example
.example {
speak: none;
}Values
| Value | Description |
|---|---|
none | Prevents the element and its contents from being rendered aurally. |
normal | Uses language-dependent pronunciation rules for rendering an element and its children. |
spell-out | Spells the text one letter at a time, typically used for acronyms and abbreviations. |
auto | Resolves to a computed value of none when display is none, otherwise resolves to auto which yields a used value of normal. |
never | Prevents the element from being rendered aurally. |
always | The element is rendered aurally. |
initial | Makes the property use its default value. |
inherit | Inherits the property from its parent element. |
Browser Compatibility
| Browser | Support |
|---|---|
| Chrome | No |
| Firefox | No |
| Safari | No |
| Edge | No |
| Opera | No |
Practice
Practice
What is the use of the 'speak' property in CSS, and what values can it take?