Monday 4 November 2013

How can we use span tag in html.

Usage:-It is generally used in-line elements or we can say that can be used in in-line elements.
Also we can say that it is used to give specific color,style even to a single word.


EXAMPLE-
                I am working in a company.

 I want to give purple color to company.


 IT LOOKS  LIKE

  I am working in a<span style="color:purple">company</span>.

RESULT:-Color of the company changed to purple.

No comments:

Post a Comment