CSS Text Indent

Using CSS Text Indent property, we can specify the indentation, or the empty space, to be put before the line of text. Often we are required to have some indent at the start of the text, and we can set that using the text-indent property.

We can specify the indent we want to have.

You can refer to the below code to understand the indentation to the text.

Output –

As you can see, there is an indent after the first line starts. If you require to do this, you can do it using the text-indent property. We are just adding some new space, or indent before the first line starts. So, you can use this thing, as and when required by you.