<h3 class="text-danger">This text is class='text-danger'</h3>
This text is class='text-danger'
Change to your own colour font
Above classes with six different colours are available by default. We can create our own class with our selected colour and add use them.
Let us create own style property like this.
<p class="my_text-class">This text is class='my_text-class'</p>
Output is here
This text is class='my_text-class'
Where to keep this style code
You can define your own style property page and inside this page you can keep your all common style code for your site.
Reading adding and removing text classes
Based on the requirement ( or condition ) we can change the text class associated with the DIV or P tag or H tag.
Here d1 is the id of our alert message box.