+ 1
How can i change text color in html which attribute used .....
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
+ 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.