text-transform: capitalize| uppercase | lowercase | none | initial | inherit;
text-transform: capitalize;
<!DOCTYPE html>
<html>
<head>
<title>
CSS text-transform Property
</title>
<style>
body{
text-align:center;
}
h1 {
color: blue;
}
p{
text-transform: capitalize;
}
</style>
</head>
<body>
<h1>CSS text-transform property</h1>
<h2>text-transform: capitalize</h2>
<p>hello world</p>
<p>WELCOME to the lidihuo</p>
</body>
</html>
hello world
WELCOME to the lidihuo
text-transform: uppercase;
<!DOCTYPE html>
<html>
<head>
<title>
CSS text-transform Property
</title>
<style>
body{
text-align:center;
}
h1 {
color: blue;
}
p{
text-transform: uppercase;
}
</style>
</head>
<body>
<h1>CSS text-transform property</h1>
<h2>text-transform: uppercase</h2>
<p>hello world</p>
<p>WELCOME to the lidihuo</p>
</body>
</html>
hello world
WELCOME to the lidihuo
text-transform: lowercase;
<!DOCTYPE html>
<html>
<head>
<title>
CSS text-transform Property
</title>
<style>
body{
text-align:center;
}
h1 {
color: blue;
}
p{
text-transform: lowercase;
}
</style>
</head>
<body>
<h1>CSS text-transform property</h1>
<h2>text-transform: lowercase</h2>
<p>HELLO WORLD</p>
<p>WELCOME TO THE lidihuo</p>
</body>
</html>
HELLO WORLD
WELCOME TO THE lidihuo
text-transform: none;
<!DOCTYPE html>
<html>
<head>
<title>
CSS text-transform Property
</title>
<style>
body{
text-align:center;
}
h1 {
color: blue;
}
p{
text-transform: none;
}
</style>
</head>
<body>
<h1>CSS text-transform property</h1>
<h2>text-transform: none</h2>
<p>Hello World</p>
<p>Welcome to the lidihuo.</p>
</body>
</html>
Hello World
Welcome to the lidihuo.