Solved

Syntax for HTML5

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

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 32

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
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…
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…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now