Do you have a question? Post it now! No Registration Necessary. Now with pictures!
May 19, 2005, 1:51 pm
rate this thread
I'm assuming there's a way to do the following, but I'm having trouble
finding good information on it. If someone could point me to a good
webpage on it...
I want to take a Valid XHTML 1.0 page and add some elements to it.
Example: Let's say I want to add the elements "DATE" and "TEXT" to an
XHTML page as in the following:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="http://www.w3.org/1999/xhtml " xml:lang="en" lang="en">
<td><TEXT>Test Text 1</TEXT></td>
<td><TEXT>Test Text 2</TEXT></td>
How would I do this? Is there a way to do it where it could still
validate as XHTML 1.0 Strict?
I tried adding [<!ELEMENT DATE (CDATA)> <!ELEMENT TEXT (CDATA)>] to the
DOCTYPE tag, but it created two problems:
1) It would at ]> at the top of my webpage.
2) I got errors when validating saying I couldn't add those elements in
those places (i.e. within <td> tags).
[ Sugapablo ]
[ http://www.sugapablo.net <--personal | http://www.sugapablo.com <--music ]
[ http://www.2ra.org <--political | http://www.subuse.net <--discuss ]