WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What do I need to ponder if I want to convert Twenty Eleven theme to XHTML? Is it just the matter of replacing the HTML5 for divs?

share|improve this question
up vote 0 down vote accepted

Probably the easiest way to do it is to set the doctype, etc and then use the w3c xhtml validator and just go through one by one and pick off the errors...but that will take A LOT of time, I strongly recommend you leave it as is.

share|improve this answer
Since the style is ruled by CSS, if you convert HTML5 to XHTML, the output should be the same, right? – Old Castle Jan 26 '12 at 10:25
Yes and no, if you have an <aside> element and you convert it to a <div>, the css will still read aside {blah}, and you'll need to apply a class to the div to be able to target it like that. The whole idea of HTML5 is that it adds additional elements, etc to make your HTML read more semantically – mor7ifer Jan 26 '12 at 10:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.