3 ms·
<!doctype html> </!doctype> OT: is there a reason to open/close the DocType at the beginning of the homepage source?
by tiffanyh 2y ago
<!doctype html>
</!doctype>
OT: is there a reason to open/close the DocType at the beginning of the homepage source?
- bdcravens 2y agoNo. It's not in the spec, and in almost 30 years of web development, this might be the first time I've ever seen someone use a closing tag for it.
- svieira 2y agoIt's also not a tag, but an SGML (?) directive (specifically a https://en.wikipedia.org/wiki/Document_type_definition https://en.wikipedia.org/wiki/Document_type_definition) and so it is in fact invalid to produce a closing tag.
- deleted 2y ago[deleted]