Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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 –  m0r7if3r Jan 26 '12 at 10:43
add comment

Your Answer

 
discard

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.