How to define Inline Styles in CSS


The simplest method of adding CSS styles to your web pages is to use inline styles. An inline style is applied to an HTML element via its style attribute, like this:

<p style="font-family: "Times New Roman", Times, serif; 
                 color: #3366cc;">Good morning Everyone
</p>

Note: Using Inline styles has one major disadvantage the code can't be reused, For example,if we wanted to apply the style above to another p element, we’d have to type it out again in that element’s style attribute

Comments

Check out

CSS Sprites | What are They?

Login form | Using CSS3

Remove Scrollbars from syntaxhighlighter

Adding a button in HTML | styling a button

HTML5 Semantic Tags | What do they mean

How to remove plus and minus characters from input type number

HTML5 | LocalStorage

How CSS3 Works

jQuery Resources | Support and tutorial help