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

HTML5 Semantic Tags | What do they mean

Remove Scrollbars from syntaxhighlighter

Adding a button in HTML | styling a button

How CSS3 Works

HTML5 | LocalStorage

Advanced Jquery easing | Demo and Download

How to add Jquery easing effects | Jquery tutorial