XHTML to HTML 4.1
- Started
- Last post
- 12 Responses
- graphito
is there an option in dreamweaver to do that? or in any other app (os x).
- graphito0
no one?
- sparker0
i'm not sure i understand. what is different that would require a step back in schema?
- graphito0
i have some websites written in xhtml. now i got a problem with some javascript code inside the xhtml site. the script will work if the site is html 4.1 confirm.
- ganon0
change the DOCTYPE....
- sparker0
hm. odd.
you could try just removing the doctype declaration.
there really isn't much to convert back. the only major differences are well-formedness (eg. using trailing slashes on single entity tags; [br /] instead of [br][/br], etc) and the deprecation of a few tags.
- graphito0
how? only change it in the HTML header works, but is not a good way ...
- sparker0
huh? what do you mean, "only in the header and not in a good way"?
the doctype is the first line of markup. just remove it (or comment it out).
- graphito0
thankx sparker. i think i have to do that, but i whish there was an faster way ... like "save as html 4.1" ... :-)
- graphito0
i know what the first line is. but i del it, the document is no longer xhtml and not html4.1. then it's crap.
- sparker0
oh, i see what you're saying. file type is irrelevant. *.htm,*.html is simply html. markup versioning isn't held as metadata.
just like *.php files that render html markup are considered html (not exactly, but for sake of description here, you get the idea).
it is how you write your markup and what version you use that makes it xhtml, html 4 or html 1. once you save it, it is just html. the hooks within the schema and how the server handles them make it versioned.
- sparker0
actually, you're partially correct. if you have used proper xhtml markup then generally it is still xhtml compatible. validators use the doctype to determine what version of markup it is.
clients use the doctype as a flag for the render engine to properlly apply the schema.
technically, yes, without the proper doctype it is not 'valid' xhtml...but if you followed the correct coding standard, then it is still xhtml.
confusing, i know.
- graphito0
wow! thank you for that detailed answer. i know what you mean. thx.