HTML Tutorial





Español Français 中文 Deutsch Portuguese Japanese nederlands
   
 
HTML Basic
Introduction
How To
HTML Tags
html, head, body
Text Manipulation
IMAGES
Special Effects
Using Tables
Forms
Other Topics
 



ADVANCED HTML
Introduction
Media
Meta Tag
Frame tags
Fieldset
Tooltip
DTD
Image tags
Subscript & Superscript
Bullet styles
Canvas
Other tags
Ask Your Doubts
More about HTML
Feedback
 




HTML Font & Pre Code


Tutorials Html

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




Other Links

web hosting