Text Indentation

The text-indent property is used to specify the indentation of the first line of a paragraph or text block:

HTML file: Displayed by browser:
<style>
p {
    text-indent: 50px;
}
</style>
<body>
<p>
In my younger and more vulnerable years my father gave me some advice that I've been turning over in my mind ever since. "Whenever you feel like criticizing anyone," he told me, "just remember that all the people in this world haven't had the advantages that you've had."
</p>
</body>

In my younger and more vulnerable years my father gave me some advice that I've been turning over in my mind ever since. "Whenever you feel like criticizing anyone," he told me, "just remember that all the people in this world haven't had the advantages that you've had."


Back buttonTable of ContentsNext button