Click to See Complete Forum and Search --> : xml containing css


webtekie
09-01-2005, 04:40 PM
Hello,

I am looking for a way to encapsulate a style sheet property into an XML tag. I hope I am explaining my problem right, here is an example. Suppose I have a style sheet:

.heading1{
font-family: arial;
color: #000000;
}

So what I am looking for is in my html page rather than using <span class="heading1">text</span>, use <heading1>text</heading1>.
Any help is appreciated.

thanks,
webtekie

theuedimaster
09-04-2005, 12:47 PM
um.... you're using the same amount of characters both ways ;). Plus when displaying in html, you can't just make up a tag (<heading1>). You can ONLY do that in xml.