davidmal
03-04-2007, 01:33 PM
I trying to add an attribute to the <input> element called 'group'. I downloaded the XHTML 1.0 Transitional dtd and tried adding 'group CDATA #IMPLIED' to the <!ATTLIST block for the <!ELEMENT input EMPTY> section and tried appending '<!ATTLIST input group CDATA #IMPLIED>' at the end of the custom dtd.
Uploaded the dtd to the same directory as the html page.(http://www.nm156-eol.com/xhtml1-custom.dtd)
The head of my HTML page is:
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.nm156-eol.com/xhtml1-custom.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Grouping Mut Ex Checkboxes</title>
...
The W3C validator still says 'group' not valid attirbute.
Obviously I'm a total rookie to DTDs, please help.
Uploaded the dtd to the same directory as the html page.(http://www.nm156-eol.com/xhtml1-custom.dtd)
The head of my HTML page is:
!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.nm156-eol.com/xhtml1-custom.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Grouping Mut Ex Checkboxes</title>
...
The W3C validator still says 'group' not valid attirbute.
Obviously I'm a total rookie to DTDs, please help.