"Offering free computer help, hints, and tips to the Internet populace." Now with over 3,820 tips!

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



Print This Tip

Get E-Mail When New Tips are Online

Return to the Web Development - Misc. page.

 


New in MalekTips:

RSS Feeds- Subscribe!

You want the latest tech tips and tricks in your e-mail Inbox - FREE? Type your e-mail address below and click 'Get Tips!'.
 


( sample / details )
( opt-out instructions )