Friday, December 23, 2016

HTML style property - Web Development

Style Property in HTML

HTML style property is CSS property you can change font, colors, background colors, text size using this property.

Format  of style property :

<tagname style="property:value;">


example for paragraph :


<p style="background-color:blue;font-size:20px;color:white;">Hi!. This is paragraph text using style property.Background color light blue and text color is white. font size is 20 px.</p>

example of property in a web page :


<!DOCTYPE html>
<HEAD>
<TITLE>Web Development Example</TITLE>
<meta charset="UTF-8">
</HEAD>
<BODY>


<p style="background-color:blue;font-size:20px;color:white;">Hi!. This 

is paragraph text using style property. Background color blue and text 

color is white. font size is 20 px.</p>


</BODY>
</html>



Result of above code:








Our some other useful websites :

To learn php - our php tutorial - http://learnandsharephp.blogspot.com/



To Post free ads - Our Free ads website - http://www.mapofmine.com and http://www.freeadsimple.com 

No comments:

Post a Comment