[thelist] Custom HTML Attributes and W3C

Stephen Rider evolt_org at striderweb.com
Mon May 10 09:05:30 CDT 2004


This, of course, means that you /could/ in theory create your own 
custom DTD that includes your custom tags.  It seems it would be a lot 
of work, however, unless you have a very specific reason to need to do 
this.  Browsers, of course, would not support your custom tags.

Probably easiest to use <div>s and <span>s with class and id attributes.

Steve

On May 9, 2004, at 7:07 PM, Bob Easton wrote:

> Hershel Robinson wrote:
>> I am under the impression (
>> http://www.quirksmode.org/about/quirksmode.html ) that custom 
>> attributes
>> will not validate according to the W3C. Can anyone confirm this and 
>> provide
>> a clear reference from the W3C itself as the veracity of this?
>> Thanks,
>> Hershel
> Validation is a comparison of actual code with the code described in a 
> Data Type Definition, DTD, the second part of the !DOCTYPE statement. 
> There are a limited number of standard DTDs. If you have a custom 
> attribute, that means it is not in any DTD.  Hence, the custom 
> attribute  won't validate.



More information about the thelist mailing list