How to change a Font color in HTML
In this post we will give you information about How to change a Font color in HTML. Hear we will give you detail about How to change a Font color in HTMLAnd how to use it also give you demo for it if it is necessary.
we are going to learn about how to change a font color in html by using the css style attribute.
Changing the font color
To change the font color in html, we can use the css style attribute followed by the css property color:red;.
Here is an example, that changes the <p> element font color to red:
<p style="color:red;">This is red color</p>
other example:
<h1 style="color:green;">This is green color</h1>
Note: By using the css style attribute inside the html element, previous applied styles to that element are removed.
Hope this code and post will helped you for implement How to change a Font color in HTML. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs