+ 9
Please answer.i want to create a heading 'Yes Yes Yes'.And need to give different colors to each 'Yes'.How can i do it?pls answr
37 Antworten
+ 5
Use the span element.
https://www.geeksforgeeks.org/span-tag-html/
+ 3
<h1>
<span style="color:red" >yes </span>
<span style="color:blue" >yes </span>
<span style="color:green" >yes </span>
</h1>
+ 3
<h1>
<span style="color:red" >yes </span>
<span style="color:blue" >yes </span>
<span style="color:green" >yes </span>
</h1>
+ 3
You can use <font> for each "yes"
+ 2
You can try this:
<h1><span style="color:red;">Yes</span><span style="color:green;">Yes</span><span style="color:blue;">Yes</span></h1>
and of course you can replace style="color:blue;" with css class or id if you have external css file
I hope you understand it
+ 2
thanks guys.I found the answer
+ 2
<html>
<Body>
<H1>
<font color="Blue">Yes
<font color="Aqua"> Yes
<font color="Green"> Yes </H1>
</Body>
</html>
You can also use RGB codes for those colours.
+ 2
Just put each head in a <span> tag then use css inline styling for all the yes.
I.e style="color:yellow;".
Thats all
+ 2
Abhinraj
its a good question for some people, while its annoying to others.
so simple to do. just use the SPAN ELEMENT
Example:
<h1>
<span style=“color:red”> Yes</span>
<span style=“color:green”> Yes</span>
<span style=“color:blue”> Yes</span>
</h1>
three “Yes” with different color each.
thank you! 😀
+ 1
Cool. My stepmom is from Amritsar.
+ 1
You can use internal css
+ 1
<h2>
<font color="red">yes </font>
<font color="blue">yes </font>
<font color="yellow">yes </font>
</h2>
+ 1
<h1 style="color:red;">Yes</h1>
<h1 style="color:blue;">Yes</h1>
<h1 style="color:green;">Yes</h1>
+ 1
<p style="color:blue;">Yes</p></n>
<p style="color: yellow;">Yes</p></n>
<p style="color:black;">Yes</p>
+ 1
By <div> tag and using css
+ 1
Hi, this maybe the solution for you
<h1>
<font color=#D0E4F5>yes </font>
<font color=#1C6EA4>yes </font>
<font color=#FFAA21>yes </font>
</h1>
0
thanks
0
You're welcome!
0
you from
0
San Francisco.