Welcome Guest! (App Version 3.1)

websitnero logo name

HTML Indent

How to do indentation of content in HTML?

Indentation in HTML is done providing gap to the left while starting content in a new paragraph or some other element. HTML indent helps in readability and helping reader understand visually new paragraph or content by looking at gap to the left.

Element {text-indent: value in pixels or %}

p {text-indent: 50px}


  .p1 {text-indent: 50px;}
  .p2 {text-indent: 150px;}
  .p3 {text-indent: 250px;}

  <p class="p1">This is paragraph 1.</p>
  <p class="p2">This is paragraph 2.</p>
  <p class="p3">This is paragraph 3.</p>
Further Reading

1. text-indent

WebsiteNero is highly optimized for learning various website developing technlogies. We try our best to add maximum modules and examples to help learn the concepts clearly and vividly. We try to present all content and examples as simple as we can removing any complexity to hurdle easy understanding. We try best provide you with worthful content, but we cannot guarantee full correctness of all the content on this site. While using this website, you agree to have read and accepted all our terms of use and conditions, cookie, and privacy policy. Copyright, 2013-2018 by websitenero.com. All Rights Reserved.