3 ms·
Theoretically, perhaps. Practically, I doubt the close-tags proposed by this MSDN article would make any measurable difference. In fact, leaving tags out consi
by gojomo 17y ago
Theoretically, perhaps. Practically, I doubt the close-tags proposed by this MSDN article would make any measurable difference.
In fact, leaving tags out consistently in certain tag-heavy auto-generated layouts, by reducing network IO and fitting more content into memory buffers at a time, could be faster.
- dunham 17y agoUsing the close-tags proposed by the MSDN article would yield an invalid HTML document. Per the DTD and the SGML standard, the closing tag of IMG, an element with EMPTY content, MUST be omitted. The element is already closed before the parser gets to the closing tag - so, in essence, you would be trying to close it twice.