Friday, 5 June 2015

Inline CSS Style


An inline style it may be used to apply a unique style for a single element in HTML.

An inline CSS style loses many of the advantages of a CSS style sheet. Use this method sparingly!

To use inline CSS styles, add the style attribute to the relevant tag. The style attribute can contain any CSS property.

<h3 style="color:red; margin-left:40px;">This is a third heading.</h3>

No comments:

Post a Comment