Solved

Syntax for HTML5

Posted on 2013-12-30
3
98 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

786 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