Solved

Syntax for HTML5

Posted on 2013-12-30
3
100 Views
Last Modified: 2014-01-17
I need to change the color of the case-sensitive word Status to blue, and the case-sensitive word Open to red.
0
Comment
Question by:frugalmule
3 Comments
 
LVL 75

Expert Comment

by:käµfm³d 👽
ID: 39747554
Under what circumstances? Always? Then you need a style. Sometimes, if an event happens? Then you need Javascript. Please elaborate.
0
 

Author Comment

by:frugalmule
ID: 39747555
Always would be the circumstance.  Under any condition.
0
 
LVL 33

Accepted Solution

by:
Big Monty earned 500 total points
ID: 39748426
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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
HowTo set a global variable in javascript or jQuery 4 40
email validation 9 47
Validating Date 4 28
Hta File displays dynamic File names 4 43
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question