Search code examples
htmlrgb

Regarding html rgb color


I have a question regarding html color code.

<font color=rgb(255,0,0)> This is my font </font>

not showing red color fonts in firefox though the color code is fine. Any idea? Instead it is showing some weird green gray color!

Thanks


Solution

  • Try with "style".

    <font style="color: rgb(255,0,0)"> This is my font </font>