Specifies that the browser should insert a rest after speaking the element's content.
With the rest-before and rest-after properties you can specify pauses before and after speaking the element's content.
The rest, rest-before and rest-after properties are similar to the pause, pause-before and pause-after properties.
The only difference when a sound file needs to play before or after the element (cue, cue-before and cue-after properties).
In that case, the pause-before property specifies the pause immediately before and the rest-before property specifies the pause immediately after playing the sound file that belongs to the cue-before property.
Similarly, the rest-after property specifies the pause immediately before and the pause-after property specifies the pause immediately after playing the sound file that belongs to the cue-after property.
One of the following values:
Takes the value of this property from the computed style of the parent element.
pause in percentage
The rest is calculated from the speech-rate property. The speech-rate defines how much time a word takes, the rest is the percentage of this value.
Integer, followed by a time unit (s,ms). The rest in absolute time.
Example HTML code 1:
This example illustrates the use of the rest-after property:
Select all text on the page (CTRL+A), click with the right mouse button on the selected text and select the speak menu item in the popup context menu.
Five seconds pause before speaking the header element.
There was three seconds pause after speaking the header element.