MSc-IT Study Material
June 2010 Edition

Computer Science Department, University of Cape Town

In-line Styles

In-Line styles are added to individual tags and are usually avoided. Like the FONT tag they clog up HTML documents, making them larger and increasing their download times.

An example of an in-line style is given below:

<P style="text-indent: 2cm; color:darkred;">
This paragraph has been formatted using the in-line style command.
</P>
<P>
This paragraph has not been formatted using the in-line style command.
>/P>