How to change the color of my H1 tag that has two words inside of it. I want each word to have a different color. | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 2

How to change the color of my H1 tag that has two words inside of it. I want each word to have a different color.

HTML

6th Nov 2022, 8:09 AM
Lister Keith
1 Réponse
0
Use <span style="">first </span> <span style="">second</span> Or use your styling from <h1 class=""> (<h1 style="">) with a span tag on the word you want changed.
6th Nov 2022, 8:18 PM
Trinity
Trinity - avatar