| ▲ | CM30 6 hours ago | |||||||||||||
Reminds me of how awkward HTML doctypes used to be. Nowadays it's very simple, but in the past? You had to refer to the URL of the doctype declaration on every page > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> This plus the X-UA-Compatible stuff mentioned in the article meant that for many people, the first few lines of code on a web page were something they probably copied from a tutorial or reference document every time, at least if they didn't have a CMS handy. | ||||||||||||||
| ▲ | Telemakhos 5 hours ago | parent | next [-] | |||||||||||||
You only had to include a doctype if you needed to turn on strict XML rendering or do fun things with XSLT. It was great if you wanted to convert, say, TEI to something browsers could read. You were always, since the days of HTML 1.0, able to use just <html> to open your document without a doctype. It would be in tag-soup mode, but for most documents (rather than applications) that was fine. Not only do you not need a doctype, but you don't even need a <head> statement... browsers will generate one if you leave it out. | ||||||||||||||
| ||||||||||||||
| ▲ | TeMPOraL 6 hours ago | parent | prev [-] | |||||||||||||
Like many, I ended up memorizing the pattern at some point, and then typing it from memory. | ||||||||||||||
| ||||||||||||||