+ 1

How can i change text color in html which attribute used .....

4th May 2019, 2:07 AM
Bhupender
Bhupender - avatar
2 Respuestas
+ 7
Bhupender you can change the color of a text using CSS. Example: Html: <h2>Hi there my name is Koder King </h2> CSS: h2 { color: red; } Edit:-> https://code.sololearn.com/W3EkpcyQi372/?ref=app
4th May 2019, 2:18 AM
Jella
Jella - avatar
+ 6
Please Checkout this demo code if you are trying to style elements accessing their attribute. https://code.sololearn.com/W5Ub587MsMqc/?ref=app And don't forget to reply me if there is any question/confusion. Note: Accessing elements to style using their attribute name and value makes performance of web-page slow.
4th May 2019, 2:34 AM
Sarthak Pokhrel
Sarthak Pokhrel - avatar