![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Is there a list of the changes you need to make to HTML 4.1 cose to make it dual compliant, with XHTML 1.1 also? |
#3
| |||
| |||
|
|
Is there a list of the changes you need to make to HTML 4.1 cose to make it dual compliant, with XHTML 1.1 also? Not possible. |
#4
| |||
| |||
|
|
But is there some _other_ reason than the different requirements on the !DOCTYPE> declaration that prevent "dual compliance" to the two specifications? |
#5
| |||
| |||
|
|
But is there some _other_ reason than the different requirements on the <!DOCTYPE> declaration that prevent "dual compliance" to the two specifications? The <!DOCTYPE> declaration is neither HTML nor XHTML, so it is irrelevant to the question. |
#6
| |||
| |||
|
|
I think he's got the point now. I think what he's asking is whether it's possible/convenient to author a document that, with a one-line change to the DOCTYPE, can be either XHTML 1.0 or HTML 4.01. My own take is fairly simple: yes, it's possible, and it's not even that hard as long as you stick to semantic/logical markup rather than trying to use TABLE for visual layout. |
#7
| |||
| |||
|
|
Jukka K. Korpela wrote: rather a lot snipped I think he's got the point now. I think what he's asking is whether it's possible/convenient to author a document that, with a one-line change to the DOCTYPE, can be either XHTML 1.0 or HTML 4.01. My own take is fairly simple: yes, it's possible, and it's not even that hard as long as you stick to semantic/logical markup rather than trying to use TABLE for visual layout. |
#8
| |||
| |||
|
|
Jukka K. Korpela wrote: rather a lot snipped I think he's got the point now. I think what he's asking is whether it's possible/convenient to author a document that, with a one-line change to the DOCTYPE, can be either XHTML 1.0 or HTML 4.01. My own take is fairly simple: yes, it's possible, |
|
and it's not even that hard as long as you stick to semantic/logical markup rather than trying to use TABLE for visual layout. |
#9
| |||
| |||
|
|
You must also avoid empty elements (e.g., LINK, IMG) that cannot be represented in a way that is valid for both HTML and XHTML. |
|
Oof. I missed that completely. Yeah, that's a big issue. For my own information, is the following valid in XHTML 1.0? In HTML 4.01? link rel="stylesheet" href="pagestyle" type="text/css"></link |
#10
| |||
| |||
|
|
Owen Jacobson <ojacobson.usenet (AT) mx-deus (DOT) net> wrote: Oof. I missed that completely. Yeah, that's a big issue. For my own information, is the following valid in XHTML 1.0? In HTML 4.01? link rel="stylesheet" href="pagestyle" type="text/css"></link In HTML, the closing </link> is invalid. You're trying to close a LINK element that isn't open. In XHTML, your example is valid, and is equivalent to <link rel="stylesheet" href="pagestyle" type="text/css" / (which is what Appendix C recommends). |
|
<link rel="stylesheet" href="pagestyle" type="text/css" / is _not_ valid HTML? |
![]() |
| Thread Tools | |
| Display Modes | |
| |