Set Font Colour

Set Font Colour:
You can set font colour by using color attributes.
• You can specify either hexadecimal colour code or colour name.

Example:
<!DOCTYPE html>
<html>
<head>
<title>Font size</title>
</head>
<body>
<font color="#FF00FF">This text is Pink</font><br/>
<font color="yellow"> This text is Yellow</font><br/>
</body>
</html>

OUTPUT:
This text is Pink
This text is Yellow

Comments

Popular posts from this blog

HTML ORDERED LISTS

Colspan & Rowspan Attributes on HTML Table