![]() |
HTML Tutorials for website designs. XHTML elements including span tag. Background image to text. Highlight text. Mouseover Color text. Alt tag on text. |
|
<SPAN> </SPAN> Here are just a few ways you can use XHTML SPAN tags. You can highlight your text any color you like. You can add colored text You can add a background image to your text. You
can add what is like an "alt tag" to your text. Try the example below
and hover your mouse over the text. This is really cool.
(Sorry, doesn't work with Netscape.) We
can even do image mouseovers using this great span tag. Here are the codes for each particular event. <SPAN
onMouseOver="document.pic1.src='bluepic2.gif'" onMouseOut="document.pic1.src='bluepic1.gif'"><img
src="bluepic1.gif" height="40" width="100" name="pic1"></SPAN>
You can highlight your text any color you like. <span style="background-color: #FFFF00">You can highlight your text any color you like</span> Colored Text Code. You can add colored text <span style="color: red; font-size: 14pt">You can add colored text</span> Adding background Image to text code. You can add a background image to your text. <SPAN STYLE="background-image: url(plainbgrnd.jpg)">You can add a background image to your text.</SPAN> HOVER YOUR MOUSE HERE. <span title="ISN'T THIS SOOOOOO COOL!"><b>HOVER YOUR MOUSE HERE.</b></span> To
add an alt tag to a text link would be like this;
|
|