This tip was printed from the MalekTips Computer and Technology Help and Tips website at http://malektips.com.

Web Development - Misc. - How to Indent Text

There are several ways of handling indentation of text. With this method, you can indent some text from the left-hand side by a tab-width.

To indent text, use the <DL> </DL> tags to signify what is called a definition list. Inside this definition list, use the <DD> tag indents text by a column.

Just insert this code as a new webpage to see an example of this indentation.

<HTML>
<HEAD>
<TITLE>Indentation Text</TITLE>
</HEAD>
<BODY>
<P>
Normal text.
<DL>
<DD>
This text is indented.
</DD>
</DL>
<P>
Normal Text
<P>
</BODY>
</HTML>

Normal Text

This text is indented.
Normal Text


 


Press the "print" button on your browser or select "File" - "Print" to print this tip. Then, return to Web Development - Misc. - How to Indent Text
 
Standard disclaimer applies - read http://malektips.com/disclaim.html.