Wednesday, December 18, 2013

Text Manipulation >> HTML Font & Pre Code -(PART_11)

Topic: How to use <pre> tag in html?
           Setting font size and color in html?

Explanation:

Pre Formated: <pre> </pre>

This tag is basically used for pre formating.
Any thing You give in between this tag will be displayed exactly as you give.
That is what ever you type, as space, break line etc will be there

Example: 
<pre>
This is pre     formated               CODE
</pre>


Result:
This is pre formated  CODE

Font: <font> </font>

Only with the help of this tag we can change the color and size of the text.

Font Color:
Font color can be changed by using the attribute "color"
Example:
<font color=red> This is red colored text </font>

Result:
This is red colored text
 

Font Size:
Example:
<font color=red size=5> This font size is 5 </font>

Result:
This font size is 5

Font Face:
Font name can be changed using the attribute "face"
Example:
<font face="Monotype Corsiva" size=5> This font type is Monotype corsiva </font>

Result:
This font type is Monotype corsiva