September 30, 2015

Applying an inline Stye to HTML document

An inline style are applied to a single HTML element. To use inline styling, we will be adding style attribute to the relevant tag. Inline style attribute may have any Cascading Style Sheets property.

Here is an inline style example of how you would changed the color of a <h1> element to green and make the font size to 20 pixels.


   <h1> style="color:green;  font-size:20px">An inline style</h1>


END...

No comments :

Post a Comment