Friday, July 4, 2008

Inline Styles (CSS) - Putting CSS within (X)HTML tags

Inline Styles are contained in the style attribute of a tag. The body tag and any tag within it can contain inline styles. Each CSS rule is separated by a semi-colon.
Note: The last CSS declaration in the attribute need not end with a semicolon.
Eg:
<p style="color: rgb(135,201,68)"> ,<div style="font-size:62.5%;background-color:rgb(130,130,130)">

No comments: