Welcome to the Geeks & God Static Archive. Read more »

Code for capital letters?

Joined: 11/28/2008

Does anyone know if there is a HTML code for putting text into capital letters?

Thanks

Patrick

Joined: 11/28/2008
Here's a way using

Here's a way using css:

CODE
<style type="text/css">

<!--

.capLetters {

    text-transform: uppercase;

}

-->

</style>

Then apply to the html tag such as:

CODE
<p class="capLetters">test</p>

In PHP:

CODE
$str = "Mary Had A Little Lamb and She LOVED It So";

$str = strtoupper($str);

print $str; # Prints MARY HAD A LITTLE LAMB AND SHE LOVED IT SO

Blessings:

Sean