3 ms·
The 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> <he
by edflsafoiewq 7y ago
The 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/ )