This is a legacy document, and retained on the site in order to avoid link rot. The content is likely no longer (a) accurate, (b) representative of the views and philosophies of current site management, or (c) up to date.

Linking CSS: Inline

Inline CSS

Inline CSS are individual declarations to suggest style, or to alter style established by the default external style sheet.

An example of the use of inline style could include a change in font color to suggest a level of importance to the HTML markup. This example suggests a red background, as a warning.

Warning! Do not try this at home.

The text is marked up as:

 <p>
 <strong style="background-color: red ; color: black ;">Warning!</strong>
 Do not try this at home.
 </p>
 

Inline CSS are individual declarations to suggest style, or to alter style established by the default external style sheet.

Sue Sims