How do you add an indent to an html code?

4 Responses to “How do you add an indent to an html code?”

Comments

  1. Heinz M says:

    Load the HTML code into Netscape composer.

    You can indent by using the tab key or increase the margin. Netscape does it for you (and if you like, you can look and see what the HTML code is which Netscape will generate for you!)

  2. Dr. J says:

    The easiest way is Your indented text here.

    Alternatively define a CSS class for the indent

    .indent {padding-left:10px;}

    Your text here

  3. Abigor says:

    You can use a non breaking space & nbsp ; (With no spaces)

    It’s best to use CSS: style=”text-indent: 10px;”

    If it’s an enter paragraph you could do this:

  4. dwightl.geo says:

    p
    {
    text-indent: 20px
    }

    here is the W3 Schools text indent reference page

Share Your Thoughts

You must be logged in to post a comment.