Font tag to manage color of the textRead the basic of html font tag here.
We can manage the color of the text in html by using font tag. Inside the font tag we have to specify color in HEX value. There is a color chart available here to give you the hex value of any color. Use that hex value to create different color font for your body tag. As font tag has one closing tag also so we can use font tag to mark part of a full text in different colors using font tag with different hex values of color.
Note that we can specify some colors directly inside the font tag. We will see some examples also. Here is a list of text with different color tags
Here is a line of text with different color within the same line.
The code of above line is here
<font color="green">Here is a</font> line of text <font color="red">with different color within</font> the <font color="#f00080">same line</font>.
Be the first to post comment on this article :