iwantcoding.com
🔥 Daily 👥 Rooms 🏆 Top Log in Sign up

CSS Reference Aural

Aural CSS was an early attempt to style how a page sounds when read aloud — speech rate, pitch, voice. Most properties have been dropped or are no longer implemented by browsers, but the goal lives on in speech APIs and screen-reader best practices.

Historical aural properties

PropertyWas supposed toToday's reality
voice-familyChoose a speech voice.Use the Web Speech API instead.
speech-rateWords per minute.User configures it in the screen reader.
pitch / volumePitch / volume of speech.Screen reader handles it.
pause-before / pause-afterSilence around elements.
cue-before / cue-afterBrief sound before/after content.

Modern alternatives

  • Semantic HTML — landmarks (nav, main, aside) and headings give screen readers structure for free.
  • ARIAaria-label, aria-describedby, aria-live handle the cases HTML can't.
  • Web Speech API — programmatic speech synthesis from JavaScript.
Note: Aural CSS is in the spec but effectively deprecated. Don't ship it to production — use the alternatives above.

Example

Example
<!DOCTYPE html>
<html>
<head>
<style>
body { font-family: Verdana, sans-serif; }
.box { background: #04AA6D; color: #fff; padding: 20px; border-radius: 6px; }
</style>
</head>
<body>

<h1>CSS Reference Aural</h1>
<div class="box">Edit the CSS on the left, then click Run &raquo;</div>

</body>
</html>
Try it Yourself »

Exercise

For modern accessible audio, use the…

Answer: Web API

Test yourself

Q1. Aural CSS is…
Q2. The modern alternative to aural CSS in JS is…
Q3. Which property *was* aural CSS?

Discussion

Loading…