+ 2
How can i give different colours to my written text in html?
6 Antworten
+ 4
<span style="color: red">Hello</span> or
<font color="red">Hello</font>
+ 3
Sadly yes
+ 2
Do i need to do it multiple times in order to use different colours for one single line? for ex :
My (red colour)
name (blue colour)
is(pink colour)
steve(yellow colour)
+ 1
Oh! Anyways Thanks for Ya Help!
+ 1
three way to give a specific color to your text, follow these step,
step1:
using simply name of color
like red, green, aqua,teal..so on
step2:
using rgb(255,255,255);
step3:
using hexa color code
like #ffoooo, #ooffoo,#ooooff
same ref, blue green
0
Use <span style="color:#ff0000;">Text</span>. Do not use the <font> tag as it has been deprecated since HTML 4.01 (c. 1999)