Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Boodlums on
Can Drupal be set up for a site to serve [valid] HTML 4 pages instead of xhtml (via theming, presumably), or is xhtml hard-coded into Drupal itself (core, modules)?
I deem xhtml to be a buzzword fad. Plus users will often paste HTML 4 into fields, rendering any xhtml claims invalid anyway, so I'd rather have valid HTML 4 than invalid xhtml.
(I tried searching this site for the answer but couldn't find it, so I'm posting here.)
thanks,
-Walter
Comments
Not in core
There are plenty of Drupal sites delivering HTML4 instead of xhtml. There should not be any issues with core. It's possible that a contributed module might produces something that violates HTML4 or any other standard; if so, file a bug report with that project. See the theme developer's handbook for explanations of how to style or restyle components as well as pages; see http://drupal.org/project/htmlpurifier if you're worried about your users.