How to Use CSS Text Properties?

Text properties are properties. By whom the text is designed.Text properties represent the shape of the font. That is, the text property is used to change the shape, color of the font.

Css has a lot of text properties. Of which we are giving below some properties. They are used for text formatting.

text-align
letter-spacing
color property
text-transform
text-decoration
word-spacing
text-shadow
text-direction
text-indent
text-rendering
text-overflow
text-shadow


Text-align Property

Text is done in the right, left, center by the Text-align Property. That is, where do you want to show the text on the browser. Its value is given inside the Text-align Property. It has some values. Which we are giving below.

Right – If you pass the right value. So your text appears in the right side.
Left – If you pass the left value. Then your text appears on the left side.
Center – If you use center value. So your text starts appearing in the center.

Example:-

<html>
<head>
<style type="text/css">
#p1 { text-align: center; }
#p2 { text-align: left; }
#p3 { text-align: right; }
</style>
</head>
<body>
<p id="p1">Experts PHP Tutorials</p>
<p id="p2">Experts PHP Tutorials</p>
<p id="p3">Experts PHP Tutorials</p>
</body>
</html>