.

Sunday, March 28, 2010

Spanning

Posted by devlevis | Sunday, March 28, 2010 | Category: , , , , |

Spanning tags (<span>) are used to span inline styles across multiple characters or
words. In effect, the <span> tag allows you to define your own inline styles. For
example, if you need to specify text that is bold, red, and underlined, you could use
code similar to the following:
<html>
<head>
<style>
.emphasis { color:red; text-decoration:underline;
font-weight:bold; }
</style>
</head>
<body>
<p><span class-"emphasis">This text is emphasized</span>,
while this text is not.</p>
</body>
</html>

The <span> tag allows you to apply the stylistic formatting inline, exactly where you
want it.

Currently have 0 comments:


Leave a Reply