To change text font color follow this code, it will be helpful for you:
If you need to change particular text color then follow this code:
<font color="red" font size="10px"> Text </font>
If you have some text in a paragraph and you wan to change these paragraph text color then use color:pink this code in your style tag or put in style tag.
For example:
<style type="text/css"> p{ color:pink; } </style>
You can also change text color to call tag class name or ID name. You should know that class name call by dot(.) sign and ID name call by # sign.
For example:
Change text color by class name:
<p class="p_tag_class"> <!-- Your text here --> </p> <style type="text/css"> .p_tag_class{ color:pink; } </style>
Change text color by ID name:
<p class="p_tag_id"> <!-- Your text here --> </p> <style type="text/css"> #p_tag_id{ color:pink; } </style>
Question and answer is powered by AnsPress.io