+ 4

Can we change the colours of text?

4th May 2019, 5:48 AM
Dhruv Kumar Roy
Dhruv Kumar Roy - avatar
4 Réponses
+ 9
Just use CSS. For eg: Hello <span style="color:green;"> World </span>
4th May 2019, 5:56 AM
Sarthak Pokhrel
Sarthak Pokhrel - avatar
+ 5
Just use the attribute with in the Tag. . Example.. You want to change the color of a paragraph then... <p textcolor="Red"> Sarthak Mund S3 </p> & you also use the CSS for chng the color... Example.. <p Style="color:Red"> Sarthak Mund S3 </p> In the both example.. O/p is.. Sarthak Mund S3 But apper in the Output Screen in RED color...
4th May 2019, 11:05 AM
Sarthak Mund S3
Sarthak Mund S3 - avatar
+ 2
just use attribute textcolor= green
4th May 2019, 7:28 AM
Roshan
Roshan - avatar
+ 2
Please finish and study the HTML course. This is a bit outdated, but you would generally start here: https://www.sololearn.com/learn/HTML/1036/?ref=app But best practice is to use CSS: https://www.sololearn.com/learn/CSS/1089/?ref=app
5th May 2019, 9:18 PM
Janning⭐
Janning⭐ - avatar