locked
How to change font color to red in the part of text? RRS feed

  • Question

  • User546194788 posted

    I used code below to change font color. It works fine.

    <font color='white'>" & "Strong password requirements: (Clicking me to generate a password) " & "</font>" & "<br /> //entire text is white color

    How to change font color to red in the part of text below?

    Clicking me to generate a password

    Monday, July 22, 2019 6:02 PM

All replies

  • User475983607 posted

    I used code below to change font color. It works fine.

    <font color='white'>" & "Strong password requirements: (Clicking me to generate a password) " & "</font>" & "<br /> //entire text is white color

    How to change font color to red in the part of text below?

    Clicking me to generate a password

    Learn standard HTML.  Use <p> (a block element)  to define a paragraph not <br />.  Add  a <span> tag (an inline element) which can have a different style than the parent <p> element.

    <p style='color: white'>Strong password requirements: <span style='color: red'>(Clicking me to generate a password)</span></p>

    Monday, July 22, 2019 6:20 PM