Syntax for HTML5

Posted on 2013-12-30
Medium Priority
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.
Question by:frugalmule
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.

Author Comment

ID: 39747555
Always would be the circumstance.  Under any condition.
LVL 34

Accepted Solution

Big Monty earned 2000 total points
ID: 39748426
if you're text is structured like this,

Status: <span>Blue</span>
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>
Status: <span class="statusRed">Red</span>

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

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.

Join & Write a Comment

This article discusses four methods for overlaying images in a container on a web page
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

607 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