+ 3
how can we change Color of the text
2 Réponses
+ 3
Use the style attribute with the color property to change the colour of text like this:
<p style="color:red;">Some text</p>
You can use color names as well as hexadecimal values and RGB values.
You can use the style attribute on any HTML element.
for more info on color values and RGB and hexadecimal values visit this link here:
https://www.w3schools.com/html/html_colors.asp
For more details about how to write CSS syntax (because the style attribute uses CSS syntax)
visit this link here:
https://www.w3schools.com/css/css_syntax.asp
Hope you find the info useful
+ 1
If you are asking about html==>
<font color="red">this text is red</font>