Font face size and color in HTML

Font face size and color in HTML


By using <FONT> Tag one can specify the colors, size of the text.

Example:

<FONT> Your text goes here </FONT>

Attributes of <FONT> are:

COLOR: Sets the color of the text that will appear on the screen. It can be set by giving the value as #rr0000 for red in RGB hexadecimal format), or by name.

Example:

<FONT COLOR="RED"> Your text goes here </FONT>

SIZE: Sets the size of the text, takes value between 1 and 7, default is 3. Size can also be set relative to default size for example; SIZE=+X, where X is any integer value and it will add with the default size.

Example:

<FONT SIZE=5> Font Size changes to 5 </FONT>
<FONT SIZE=+2> Font Size changes to 5 i.e. default size (3)±2</FONT>


FACE: Sets the normal font type, provided it is installed on the user’s machine.

Example:

<FONT FACE="ARIAL"> the text will be displayed in Arial</FONT>

Html : Font face size and color in HTML Program List




CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Website development Company in Allahabad