4 ms·
This is specifically elements which are allowed in the `head` element of the document. I recently read somewhere that for backwards compatibility reasons no ne
by mpolichette 7y ago
This is specifically elements which are allowed in the `head` element of the document.
I recently read somewhere that for backwards compatibility reasons no new element types can be added within `head`. This causes a lot of overloading on the existing ones for elements like <link />.
I don't have any supporting evidence though.
- giancarlostoro 7y agoI havent heard of that but looking through RFCs might be the way to find out.
- edflsafoiewq 7y agoThe HTML syntax lets you omit the </head> tag. Any start tag not in the finite list of elements will implicitly start the body and go there. <html> <head> <title>I am in the head</title> <foo>I am in the body!</foo> </head> <- this is a parse error and is ignored
- tannhaeuser 7y agoHTML even lets you omit the <html> and <head> tags, so the following is valid and equivalent: <title>I am in the head</title> <foo>I am in the body</foo> I've described how this works for SGML here [1], but it also applies to HTML. [1]: http://sgmljs.net/docs/sgml-html-tutorial.html http://sgmljs.net/docs/sgml-html-tutorial.html (see slides linked from TALK)
- Izkata 7y agoScrew it, let's abandon all markup and content: https://mathiasbynens.be/demo/css-without-html https://mathiasbynens.be/demo/css-without-html (Explanation: https://css-tricks.com/using-css-without-html/ https://css-tricks.com/using-css-without-html/ )