HTML style

The HTML Style Attribute

Setting the style of an HTML element, can be done with the style attribute.
The HTML style attribute has the following syntax:
<tagname style="property:value;">

You can also change you paragraphs color and font size using these tags:
<p>I am normal</p>
<p style="color:red;">I am red</p>
<p style="color:blue;">I am blue</p>

<p style="font-size:50px;">I am 50 feet tall</p>

I am normal
I am red
I am blue
I am 50 feet tall

There you can see different text colors, fonts and we can change text styles as boldness etc.
there are color examples:
style="color:blue; style="color:red"; 

font examples:
style="font-family:verdana;" style="font-family:courier;"

Other interesting things:


<b> - bold



I'll be bold

<em> - italics, which makes significant text 


I am significant

<i> -  italics


I am special too!

0 коммент.