I'm working on a script that will (based on some user input) generate in plain text the framework of an HTML 4.01 compliant web page. It will include all recommended META tags, title, head, and body tags.
W3C standard requires an HTML DTD. I'm trying to create the form so that when a user selects transitional, strict, or frameset as their DTD, the DTD and all other tags mentioned earlier are displayed (upon hitting submit) in plain text. Displaying the DTD as plain text is the only problem I've had. Everything else has gone quite smoothly.
If you still have questions, I can attach the script.