<span>

Description

This element is used to apply style sheet to the text.

Example


<html>
<body>
     <p>
          <span style="color: #FF0000;">paragraph</span>
          <span style="color: blue;">three </span> 
          <span style="color: blue;">styles </span>.
     </p><!-- w w  w . jav a  2 s. c om-->
</body>
</html>

Click to view the demo

The code above generates the following result.

span




















Home »
  HTML CSS »
    HTML CSS Reference »




HTML Tag Reference
CSS Reference
CSS Selector Reference
Encoding Reference