0

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?

1 Answer 1

0

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.

2
  • Since the style is ruled by CSS, if you convert HTML5 to XHTML, the output should be the same, right?
    – Old Castle
    Jan 26, 2012 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, 2012 at 10:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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