WP creates xhtml markup but defines content as html
-
I’ve been searching for info but the only relevant doc I found was 6 years old. (https://www.ads-software.com/ideas/topic/use-html-doctype-not-xhtml)
I agree completely with the author’s sentiment: we should be creating valid html, not xhtml that “validates” as html. xhtml seems to be a dead-end, browser-wise. It’s html5 now.
There’s a WP (apparently official) document that says, “it’s xhtml — deal with it” (https://codex.www.ads-software.com/HTML_to_XHTML). (Which is, I have to say, ridiculous, since WP’s meta tag says the content is text/html!) Yet even this document says there are problems with xhtml, and even offers a link to a plugin to fix WP output. Unfortunately, the link is no longer valid.
Is there a “correct” way to force WP to output html?
- The topic ‘WP creates xhtml markup but defines content as html’ is closed to new replies.