Šime Vidas on Nostr: Why is the root element in HTML called <html>? Why not <document> or <doc> or <page> ...
Why is the root element in HTML called <html>? Why not <document> or <doc> or <page> or <root>? Isn’t it weird that the root element of an HTML document has the same name as the language itself? That’s like if the global object in JavaScript was literally called javascript.
Published at
2024-08-15 06:05:10Event JSON
{
"id": "d4a35915611f54d0e2050a58bc3d712d039b7227f9461464f2ad061a9c4fd97b",
"pubkey": "9905baf240d64c7bb13eac87b307ef09eef4535c0eda83498740b3e522ac9d09",
"created_at": 1723701910,
"kind": 1,
"tags": [
[
"proxy",
"https://mastodon.social/users/simevidas/statuses/112964528420447490",
"activitypub"
]
],
"content": "Why is the root element in HTML called \u003chtml\u003e? Why not \u003cdocument\u003e or \u003cdoc\u003e or \u003cpage\u003e or \u003croot\u003e? Isn’t it weird that the root element of an HTML document has the same name as the language itself? That’s like if the global object in JavaScript was literally called javascript.",
"sig": "421aaf4364845fe096d07122c4e1548d51d216ae3fb924c02165c7851190ba93ca61b8b0c40cd57449adcd8d96e32869265d64259060888dc278c8f00d23d3d6"
}