logo

India's First Software Developer Community

Transform Text in CSS

Learn How to autoformat sentences with css

    There are three types

    1) uppercase
    2) lowercase
    3) capitalize

    For example : text-transform:uppercase;


<!DOCTYPE html>
<html>
<head>
<title> AutoFormat Sentence| W3CodeIndia </title>
<style type="text/css">
h2.uppercase
{ text-transform:uppercase;}
h2.lowercase
{ text-transform:lowercase;}
h2.capitalize
{ text-transform:capitalize;}
</style>
</head>
<body>
<center><h2 class="uppercase">welcome to w3codeindia (uppercase)</h2></center>
<center><h2 class="lowercase">welcome to w3codeindia (lowercase)</h2></center>
<center><h2 class="capitalize">welcome to w3codeindia (capitalize)</h2></center>
</body>
</html>




Subscribe Us :

Chapters :-


Advertisement