I've arrived at a compromise whereby I use valid HTML 4.01, *except*
that I want to use the nonstandard "bordercolo r" attribute for tables.
My code validates just fine except for this hack/workaround.
So here's my question -- can I make up my own DTD?
Grab http://www.w3.org/TR/1999/REC-html40...1224/loose.dtd, add one
attribute to the table spec, save it as
http://www.mysite.com/DTD/even-looser.dtd and put that in my own
custom DOCTYPE?
I realise this is a somewhat meaningless exercise, and purely an
academic question, but what would a parser or syntax checker do? I'd
be interested in your thoughts.
TIA
that I want to use the nonstandard "bordercolo r" attribute for tables.
My code validates just fine except for this hack/workaround.
So here's my question -- can I make up my own DTD?
Grab http://www.w3.org/TR/1999/REC-html40...1224/loose.dtd, add one
attribute to the table spec, save it as
http://www.mysite.com/DTD/even-looser.dtd and put that in my own
custom DOCTYPE?
I realise this is a somewhat meaningless exercise, and purely an
academic question, but what would a parser or syntax checker do? I'd
be interested in your thoughts.
TIA
Comment