The cue properties may be specified as cue-before and cue-after or as shorthand for both, the cue property.

The properties cue-before and cue-after specify whether there will be an audio file played before and / or after the element. It's mostly used to delimit the element's content from other contents.

Cue before ot cue after?

The cue-before and cue-after properties contain following information:

  1. value: <uri>, none or inherit;
  2. initial: none;
  3. applies to: all elements;
  4. inherited: no;
  5. percentages: N/A;
  6. media: aural;
  7. computed value: absolute URI or none.

The value uri specifies the path of the auditory file to be played. If the type is not of an audio file type it must be ignored and treated the same as it were value none selected.

Cue property

The property cue is the shorthand for above mentioned properties.

The cue property contains following information:

  1. value: [<uri>, <uri>] or inherit;
  2. initial: depends on individual properties;
  3. applies to: all elements;
  4. inherited: no;
  5. percentages: depends on individual properties;
  6. media: aural;
  7. computed value: depends on individual properties.

If two values are given, the first one refers to cue-before property and the second one is cue-after property. If only one value is given then it will be applied to both of these properties.

Example

CSS cue property example:

 

›› go to examples ››