+ 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 ?
1 Réponse
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>