You can control the case of text using CSS : text transform : Text Tags HTML CSS TUTORIALS


HTML CSS TUTORIALS » Text Tags » text transform »

 

You can control the case of text using CSS


 


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en'>
    <head>
        <title>text-transform</title>
        <style rel='stylesheet' type='text/css'>
{
    padding: 5px 25px;
    background: mistyrose;
    border: 1px solid orange;
}
span.lower {
    text-transform: lowercase;
    background: pink;
}
span.upper {
    text-transform: uppercase;
    background: pink;
}
span.capitalize {
    text-transform: capitalize;
    background: pink;
}
        </style>
    </head>
    <body>
<span class='lower example'>UPPERCASE TEXT LOWERCASE</span> 
<span class='upper example'>lowercase text uppercase</span>, 
<span class='capitalize example'>capitalize every word in a sentence</span>.
        </p>
    </body>
</html>

 



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo Text Tags
» text transform