Open In App

CSS speak Property

The CSS speak property is used to define whether the text should be rendered aurally.

Syntax:



speak: auto | normal | spell-out | none 
        | never | always| initial | inherit;

Parameters: This property accepts six parameters as mentioned above and described below:

Example 1:






<!DOCTYPE html>
<html>
  
<head>
    <style>
        .number {
            speak: none;
        }
    </style>
</head>
  
<body style="text-align: center;">
    <h1 style="color: green;">GeeksforGeeks</h1>
  
    <p>CSS speak Property</p>
  
    <ol class="number">
        <li>One</li>
        <li>Two</li>
        <li>Three</li>
        <li>Four</li>
    </ol>
</body>
  
</html>

Output:

Example 2:




<!DOCTYPE html>
<html>
  
<head>
    <style>
        .spanis {
            speak: always;
        }
    </style>
</head>
  
<body style="text-align: center;">
    <h1 style="color: green;">
        GeeksforGeeks
    </h1>
  
    <p>CSS speak Property</p>
  
    <ul class="spanis">
        <li>Ramos</li>
        <li>Piquee</li>
    </ul>
</body>
  
</html>

Output:

Supported Browsers: This property is deprecated in CSS3 so the major browsers are not supported by this property.


Article Tags :