W3C home > Mailing lists > Public > www-html@w3.org > July 2003

Custom elements in XHTML

From: Barry Broom <bpbrooe@barrybroom.co.uk>
Date: Fri, 11 Jul 2003 10:44:47 +0100
To: <www-html@w3.org>
Message-ID: <000001c34791$11947d80$271cfea9@chutneydave>
I've been searching the internet for days now and can't find a single
answer to my question.
 
When using XHTML and CSS, I find myself creating a lot of classes in DIV
and SPAN elements, such as;
<span class="xhtmlCode">.</span>
 
Now with XHTML being _extensible_ I would have thought I could make my
own element such as;
<xhtmlcode>.</xhtmlcode>
 
Then style it with CSS. This would be much easier to read, but in my
research, it doesn't seem possible.
 
I would be grateful of any suggestions and an example if this is
possible.
 
Yours truly,
Barry Broom
Received on Friday, 11 July 2003 05:46:18 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:56 GMT