From HTML 4 to XHTML 1
Articles
Recently I made a Journals style that had to be valid to XHTML (strict) instead of just HTML. While working on this, I made a couple of observations.
Recently I made a Journals style that had to be valid to XHTML (strict) instead of just HTML. While working on this, I made a couple of observations.
DOCTYPE
The doctype for XHTML strict documents:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
IFRAME
IFRAME is no longer permitted in XHTML, but you can do the same thing with the OBJECT tag (source):<object data="sourcefile.html" type="text/html"> (text for other browsers) </object>
NOBR
NOBR was never part of the HTML 4.0 standard anyway. To do the same thing in CSS:.nobr { white-space: nowrap; }