Syntax for HTML5

I need to change the color of the case-sensitive word Status to blue, and the case-sensitive word Open to red.
frugalmuleAsked:
Who is Participating?
 
Big MontyConnect With a Mentor Senior Web Developer / CEO of ExchangeTree.org Commented:
if you're text is structured like this,

Status: <span>Blue</span>
<br/><br/>
Status: <span>Red</span>

you could add the following classes to your css:

.statusBlue   {  color: blue;  }
.statusRed    {  color: red;    }

then change your markup to:

Status: <span class="statusBlue">Blue</span>
<br/><br/>
Status: <span class="statusRed">Red</span>
0
 
käµfm³d 👽Commented:
Under what circumstances? Always? Then you need a style. Sometimes, if an event happens? Then you need Javascript. Please elaborate.
0
 
frugalmuleAuthor Commented:
Always would be the circumstance.  Under any condition.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.