+ 3

How can we give more than one colour to a single line .

Html

7th Jan 2022, 12:32 PM
Äarush Rajput
5 Answers
+ 5
You could use the <span> tag
7th Jan 2022, 12:47 PM
Lisa
Lisa - avatar
+ 1
Krishni upvote , like the question
7th Jan 2022, 3:50 PM
Äarush Rajput
+ 1
You can use <span> tag and give it a class, then give any color to a class Exmple : <p> this is black <span class="red"> this is red </span></p> Css : .red {color : red}
8th Jan 2022, 4:37 PM
amir kalan
0
amir kalan ,Chandhini A , and others also Please upvote or like this question
8th Jan 2022, 8:03 PM
Äarush Rajput
0
By span tag
1st Feb 2022, 11:01 AM
Kamal Singh