These forums are currently read-only due to receiving more spam than actual discussion. Sorry.

It is currently Sat Dec 02, 2017 4:26 pm Advanced search

XHTML 5 with XHTML 1.1

Here you can discuss things related to HTML and the Web in general that do not fit in to other categories.

XHTML 5 with XHTML 1.1

Postby maxh » Wed Sep 12, 2007 11:17 pm

Is there a way that I can make my page compatible with both XHTML 1.1 and XHTML 5? Sorry if this is already posted, I can't find it.
maxh
<h6>
 
Posts: 1
Joined: Wed Sep 12, 2007 10:46 pm

Postby zcorpan » Thu Sep 13, 2007 5:50 pm

What do you mean with compatible? Work in both XHTML 1.1 browsers and XHTML5 browsers? Be conforming to both at the same time?

The answer to the former is yes since XHTML5 should be compatible by design.

The answer to the latter is probably also yes; XHTML5 is more relaxed in some parts and more restrictive in others. XHTML 1.1 requires a doctype declaration and it is optional in XHTML5. XHTML 1.1 has a bug with the usemap="" attribute that is fixed in XHTML5, so if you want to be an asshole you can't use client side image maps and conform to XHTML 1.1. There are probably some other differences but they would be pretty minor.
zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 0 guests