

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Text Transformation using CSS
For text transformation in CSS, use the text-transform property with the following values −
text-transform: none|capitalize|uppercase|lowercase|initial|inherit;
Example
<!DOCTYPE html> <html> <head> <style> div { line-height: 1.9; text-transform: uppercase; } </style> </head> <body> <h1>Demo Heading</h1> <div> <p>This is demo text.<br> This is another demo text. </p> </div> </body> </html>
Output
Example
Let us see another example −
<!DOCTYPE html> <html> <head> <style> div { text-transform: lowercase; } </style> </head> <body> <h1>Demo Heading</h1> <div> <p>THIS is demo text.<br> This is ANOTHER demo text. </p> </div> </body> </html>
Output
- Related Questions & Answers
- Text Transformation Working with CSS
- Formatting Text Using CSS
- Text Indentation using CSS
- Text Decoration Using CSS
- Setting Text Color using CSS
- Set Text Alignment using CSS
- Setting Text Alignment using CSS
- How to Justify Text using text-align & text-justify CSS Properties?
- 2D Transformation of Elements using CSS3
- CSS Text Shadow
- Disable text wrapping inside an element using CSS
- Create white text with black shadow using CSS
- Explain OpenCV Laplacian Transformation using java Example
- Explain OpenCV Distance Transformation using java Example
- Indent Text with CSS text-indent Property
Advertisements