New course! Every coder should learn Generative AI!
Try a free lesson+ 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
1 Answer
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.