title: Hover style attribute in html
body: <p>I want to add color to the text. I have more texts. So I retrieve the text color from the server and added the text color to the corresponding text. I want to add the border for the text and need to assign corresponding text color for the border when hovering the text.</p>
  
  <p>In style sheet, we can able to give hover like below:</p>
  
  <p><code>.text: hover{
     color:#FF0000;
  }</code></p>
  
  <p>But I have dynamic text color. I want to assign corresponding text color for the border for the corresponding text. In the style sheet, we cannot do.</p>
  
  <p>Is there any way to add hover in style attribute in div?</p>