XML technologies / CSS / Advanced websites with CSS / CSS property reference / speak-numeral

(Excerpt from “CSS − Advanced websites with Cascading Stylesheets” by Rachel Andrew & Dan Shafer)

Numbers can be spoken either as a sequence of digits (e.g. one, two, three) or as a whole number (e.g. one hundred and twenty-three). The property speak-numeral specifies which method aural browsers use to read numbers in an HTML element.

Inherited: yes

See also: speak, speak-header, speak-punctuation

Values

The property speak-numeral supports the following constants:

  • digits: Each digit of a number is read separately.

  • continuous: The number is read as a whole

Default value: continuous

Compatibility

CSS version: 2

Not supported by any current visual browser.

Example

The following style rule makes an aural browser read each digit separately for all numbers in elements of the class binary:

.binary {
 speak-numeral: digits;
}

  

 

 

 

back to top