+ 2
How to make colorful text in HTMl?
6 Respuestas
+ 1
<p style="color: #FF0000;">This text is red.</p>
<p style="color: #0000FF;">This text is blue.</p>
<p style="color: #00FF00;">This text is green.</p>
+ 6
You simply change the colour with CSS.
Here is some information:
https://sololearn.com/compiler-playground/Wnay7YWN1j04/?ref=app
https://sololearn.com/compiler-playground/W15sGoXt5Oc0/?ref=app
https://sololearn.com/compiler-playground/WqTQJG7XN5Kq/?ref=app
https://sololearn.com/compiler-playground/WbROrhO5vrae/?ref=app
https://sololearn.com/compiler-playground/WqMRvU59uJY8/?ref=app
https://sololearn.com/compiler-playground/W0uW3Wks8UBk/?ref=app
+ 2
https://sololearn.com/compiler-playground/WXVhdVckZ67K/?ref=app
+ 1
thanks🙏🏻👍🏻
+ 1
If you wanna create a gradient within the text (e.g. a rainbow text) you can use the webkit linear gradient whose workings can be seen in this:
https://sololearn.com/compiler-playground/WarjqtW4Pg4U/?ref=app
+ 1
Change it with css ex: <p style=“color:blue”> blue paragraph</p>