+ 2

html, change color of a secific words ?

how can i change the color of some words in a paragraph ? ex: I want the name Alex is written in red <p> Hey! I'm Alex. Coding has changed my world. It's not just about apps. Learning to code gave me problem-solving skills and a way to communicate with others on a technical level. I can also develop websites and use my coding skills to get a better job. I learned it all at SoloLearn where they build your self-esteem and keep you motivated. Join me in this rewarding journey. You'll have fun, get help, and learn along the way! </p>

30th Mar 2018, 7:29 AM
Nhan
2 Respuestas
+ 7
Use span tags. <span style=“color:red;”>Alex</span> It is better than font tags. Font tags does not support in HTML5. So use CSS instead.
30th Mar 2018, 8:10 AM
Warith Vatanaplachaigoon
Warith Vatanaplachaigoon - avatar
+ 1
I found the answer. It's <font color="red">Alex</font> thanks guys anyway
30th Mar 2018, 7:33 AM
Nhan