[html5] Updating to XHTML 1 to HTML5
whatwg at gmail.com
Thu Sep 2 10:17:44 PDT 2010
> On Thu, Sep 02, 2010 at 10:05:37AM +0000, Ian Hickson wrote:
>> Oh if you want to switch from XHTML to HTML (any version), then that's
>> a bit more work. You'll have to change from the XML syntax to HTML.
On Thu, Sep 2, 2010 at 6:41 AM, Tatham Oddie <tatham at oddie.com.au> wrote:
> Unless I'm missing the point, I think the OP wanted to move from XHTML 1 to
> HTML5 *with an XML serialisation*, not to HTML serialization.
I think I've been confused. My understanding was that in HTML5 you
could mix and match syntaxes validly. Thus:
<title>An HTML Document</title>
<p>This is an example HTML document.
<p><img src="whatever.jpg" alt="things" />
The <p> elements are not closed, HTML style, but the <img> and <hr>
elements are, XHTML style. This validates in the above validator as
well as at validator.w3.org. Is there some reason that I really *need*
to stick to one or the other?
On Thu, Sep 2, 2010 at 4:24 AM, Alastair Campbell <ac at alastc.com> wrote:
> Brenden, was there anything you *needed* XHTML 1.1 for, or was did you use
> that because it seemed the best choice at the time?
I always avoided XHTML because I didn't want to serve it as text/html.
I'm actually asking because I'm teaching a course on HTML and I'm
preparing a lesson about the different versions of web markup
languages. So I'm looking at it from a more theoretical standpoint:
how much XHTML is valid in HTML5? I was tempted to say everything
except the MIME type and the doctype, but Ian pointed out a couple
good examples that won't work. I was basically hoping to be able to
come up with an XHTML 1 --> HTML5 version of this page:
More information about the Help