0

How do I change the color of my text in html?

8th Jan 2022, 12:32 PM
Johnson
Johnson - avatar
4 Answers
+ 2
<p style="color: colorname ;">text</p>
8th Jan 2022, 12:37 PM
🖤暗闇🖤
🖤暗闇🖤 - avatar
+ 1
Use color attribute in CSS
8th Jan 2022, 12:37 PM
A͢J
A͢J - avatar
+ 1
Use a stylesheet instead
8th Jan 2022, 12:58 PM
Alex
Alex - avatar
+ 1
You can also do: (HTML): <p class="text"> hello world </p> (CSS): .text(color: color name or #...
8th Jan 2022, 2:01 PM
NEZ
NEZ - avatar