html indenty code example Example 1: html how to indent text p { text-indent: 50px; } Example 2: how to add an ident in html .tab { text-indent:40px }