Monday, 20 October 2014

Learn HTML online for beginners part 7 html formatiing style fonts, color and size

HTML STYLE- Background color


Change your background color by using background color tag this tag use in body.

Example


<body style="background-color: yellow;">

<h2 style="background-color: red;">this is heading</h2>

<p style="background-color:green;">this is paragraph</p>






HTML STYLE fonts, color and size


<h1 style="font-family:verdana;"> this is heading</h1>

<p style="font-family:arial;color:red; font-size:20px;"> this is paragraph</p>






No comments:

Post a Comment