Showing posts with label html text properties. Show all posts
Showing posts with label html text properties. Show all posts

Monday, February 5, 2024

text properties in css

      Text properties in css

1] This css property allows us to change the case of the text.

2] used to control the text capitalization.

3] css property can be used to make the appearance of next 

  all-lowercase and ,all uppercase can first character each word uppercase.


Text properties 


1] text-transform : uppercase;

2] text-transform : lowercase;

3] text-transform : capitalize;

1) text-transform : uppercase;

   Transforms all characters to uppercase.

Example :- 

<!DOCTYPE html>
<html>
<head>
   
      <title>css text-transform property</title>
      <style>
             p
             {
                  text-transform:uppercase;
             }

      </style>
</head>
<body>
      <h1>Learn Programming Language</h1>

      <p>Learn to the this website https://webdesigningtheory.blogspot.com/
</p>
     
</body>
</html>

Output :-

text-transform: uppercase / output



2)  Text-transform : lowercase;

 Transforms all characters to lowercase.

Example:-

<!DOCTYPE html>
<html>
<head>
   
      <title>css text-transform property</title>
      <style>
             p
             {
                  text-transform:lowercase;
             }

      </style>
</head>
<body>
      <h1>Learn Programming Language</h1>

      <p><b>Learn to the this website https://webdesigningtheory.blogspot.
com/</b></p>
     
</body>
</html>

Output :-
text-transform lowercase/output

3) Text-transform : capitalize;

       Transforms  the first character of each word to uppercase and 

transforms all other characters to lowercase.

Example :-

<!DOCTYPE html>
<html>
<head>
   
      <title>css text-transform property</title>
      <style>
             p
             {
                  text-transform:capitalize;
             }

      </style>
</head>
<body>
      <h1>Learn Programming Language</h1>

      <p><b>Learn to the this website https://webdesigningtheory.blogspot.
com/</b></p>
     
</body>
</html>

Output :-

text-transform capitalize /output




READ MORE

external css in html

inline css in html

internal css

css introduction

bdi tag in html

text align css