4 ms·
However weird it feels, this makes sense. Why did we ever have do things like use an HTML tag immediately after declaring the DOCTYPE as HTML anyway?
by keeganjw 10y ago
However weird it feels, this makes sense. Why did we ever have do things like use an HTML tag immediately after declaring the DOCTYPE as HTML anyway?
- Sharlin 10y agoWell, the HTML tag is older than DOCTYPE. Andin SGML and, later, XML, the document must contain a single root element.
- gsnedders 10y agoThe html element's tags have been possible to omit under all SGML-based HTML standards. This has no bearing on the document having a single root element. (And the document still does have a single root element in current HTML.)
- TheRealPomax 10y agoBecause it's easy to go "well this was completely unnecessary" 30 years after the fact. HTML's been through decades of change involving tens of thousands of opinionated experts. We have the history we do because this is where we are today.