+ 1

How to change the color of a custom text?

hi guys can I change part of color text ? like <p>this is red<\p> can you help me to change word " red " just to color red ?

20th Nov 2017, 10:08 AM
Abdullah Ali Khalid Moqble
Abdullah Ali Khalid Moqble - avatar
1 Respuesta
0
In HTML5 ou can do that with inline CSS, as follows <p>this is <span style="color:red;">red</span></p> please note that in previous HTML specification it was possible to achieve the same result with a font tag but this tag do not belong to HTML5 <p>this is <font color="red">red</font></p>
20th Nov 2017, 10:54 AM
ams